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

Controlled vocabularies are being URL decoded at input time #8511

Closed
jonasraoni opened this issue Dec 18, 2022 · 3 comments
Closed

Controlled vocabularies are being URL decoded at input time #8511

jonasraoni opened this issue Dec 18, 2022 · 3 comments

Comments

@jonasraoni
Copy link
Contributor

jonasraoni commented Dec 18, 2022

Describe the bug
When inserting a controlled vocabulary item, the data is being URL decoded, which ends up changing the user input.

To Reproduce

  1. Access a submission
  2. Add a keyword with a text which is sensible for the urldecode() function, for example +test
  3. Check the saved data and see the plus is gone.

What application are you using?
*/stable-3_3_0
*/main

PRs
stable-3_3_0

main

jonasraoni added a commit to jonasraoni/pkp-lib that referenced this issue Dec 19, 2022
jonasraoni added a commit to jonasraoni/ojs that referenced this issue Dec 19, 2022
jonasraoni added a commit to jonasraoni/pkp-lib that referenced this issue Dec 20, 2022
jonasraoni added a commit to jonasraoni/pkp-lib that referenced this issue Dec 20, 2022
jonasraoni added a commit to jonasraoni/ojs that referenced this issue Dec 20, 2022
@jonasraoni
Copy link
Contributor Author

jonasraoni added a commit to jonasraoni/ojs that referenced this issue Dec 20, 2022
@asmecher
Copy link
Member

I believe it's due to the old UI tool we used to use for tags double-escaping things. I'm OK to remove it if it tests out to work well.

jonasraoni added a commit that referenced this issue Dec 21, 2022
…p-urldecode-from-vocabs

#8511 Removed urldecode() from controlled vocabularies
@jonasraoni
Copy link
Contributor Author

It worked fine on my environment and the tests passed, so I've merged the PRs.

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

2 participants