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

Allowing percent encoded accented characters in the urls #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WebBamboo
Copy link

As it is now the plugin can't publish URLs containing percent encoded accented characters. Eg.:
/ölbloggen/ is encoded to /%C3%B6lbloggen/ however sanitize_text_field() strips the accented part and submits an invalid url: /lbloggen/ which would potentially lead to a 404 on the search engine part.
What is more the percent encoded pair has to be uppercased hence the usage of preg_replace_callback.

@WebBamboo WebBamboo changed the title Allowing for percentage encoded accented characters in the urls Allowing for percent encoded accented characters in the urls Feb 28, 2022
@WebBamboo WebBamboo changed the title Allowing for percent encoded accented characters in the urls Allowing percent encoded accented characters in the urls Feb 28, 2022
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

Successfully merging this pull request may close these issues.

1 participant