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
Add '+' as one of the valid characters in urls specified in the front matter #1966
Conversation
Why should it be one of the valid characters? |
It is one of the characters that is valid in urls http://stackoverflow.com/a/1547940 |
Hugo have its own restrictions. Thanks for your report. |
@egonSchiele Not all of the characters in that list are acceptable in commonly used filesystems. Hugo will only permit characters that are both acceptable in all filesystems and valid URL characters. Additionally we avoid characters that may be filesystem acceptable but will interfere with programs (finder, explorer, ls, dir, etc) which are more particular. We did end up adding the "%" character even though it's an issue on windows due to its extensive use in URLs. Is there a similarly valid use case for allowing the "+"? |
Aah.. Thanks for providing the background. We appreciate the fix. I did some diligence and I can't find a reason to prohibit this character. It's fine on linux, mac and windows.. even back to Win95. I'm fine with merging unless @bep has a reason against it. |
No reason, please merge. |
merged as c42982f Thanks @egonSchiele. Sorry this one took a while to merge in. Looking forward to further contributions. |
Happy to help @spf13 ! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The UnicodeSanitize function contains a list of valid characters,
+
should be one of those chars.