Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw citations should be escaped on the front-end #5623

Closed
Vitaliy-1 opened this issue Mar 12, 2020 · 6 comments
Closed

Raw citations should be escaped on the front-end #5623

Vitaliy-1 opened this issue Mar 12, 2020 · 6 comments
Assignees

Comments

@Vitaliy-1
Copy link
Collaborator

OJS master branch and 3.1.2 stable

References form can be populated by an author during submission process in the case when it's enabled. Prior to exposure to the front-end, this data should be escaped.

Relevant for the Default and other themes (article_details.tpl).

@Vitaliy-1 Vitaliy-1 self-assigned this Mar 12, 2020
Vitaliy-1 added a commit to Vitaliy-1/ojs that referenced this issue Mar 12, 2020
@Vitaliy-1
Copy link
Collaborator Author

Vitaliy-1 commented Mar 12, 2020

PR to master: pkp/ojs#2678
PR to OJS 3.1.2 stable: pkp/ojs#2679

asmecher added a commit to pkp/ojs that referenced this issue Mar 12, 2020
asmecher added a commit to pkp/ojs that referenced this issue Mar 12, 2020
asmecher added a commit to pkp/omp that referenced this issue Mar 12, 2020
asmecher added a commit to pkp/omp that referenced this issue Mar 12, 2020
asmecher added a commit to pkp/omp that referenced this issue Mar 12, 2020
@asmecher
Copy link
Member

@Vitaliy-1, thanks, this is now merged and correct in OJS and OMP, both stable-3_1_2 and master. I'll leave the theme plugins to you!

@Vitaliy-1
Copy link
Collaborator Author

@asmecher, my initial thought was that publishers may want to use some tags in references, e.g., links (DOIs...) or formatted text (italic/bold). On the other hand, this form doesn't use TinyMCE that should discourage from using tags.

@asmecher
Copy link
Member

Yes, for consistency we would need to convert the field to TinyMCE-enabled (and escape prior content) in order to properly support HTML in reference lists.

@NateWr
Copy link
Contributor

NateWr commented Mar 16, 2020

Can this be closed now?

@asmecher
Copy link
Member

I have @Vitaliy-1's thumbs-up on themes, and I've covered the apps, so yes!

asmecher added a commit to ajnyga/ojs that referenced this issue Mar 16, 2020
ajnyga pushed a commit to ajnyga/ojs that referenced this issue Mar 17, 2020
MedAhamada pushed a commit to Maanrifa/ojs that referenced this issue Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants