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
Tag cloud links do not escape the & character #48
Comments
I think we should prevent storing |
I agree with not storing tags containg &. |
@e2jk would an underscore |
I have no strong feelings. I would never put an & or any kind of weird characters in my tags anyway... |
There are a handful cases where & can have a meaning, that would be lost if replaced:
For most usages, splitting compound tags into single tags should be fine, e.g. "tips&tricks" becomes "tips tricks". Using only single tags is also more convenient when performing searches...
|
True.
No. If the user enters a single tag it should be kept single. In your case we would end up with an I think the best way is to just strip the |
Stripping or replacing will cause problems like this, yes. I think it's actually better than the current situation (can't search/filter tags with |
Btw, is this issue confirmed? I have no trouble adding and searching tags containing &, whether it's at the beginning, within, or at the end of the tag name... |
Uh. You're right I can't reproduce it anymore... |
Ok I was able to reproduce this. Good news this is not as bad as originally reported. Using either the But when using the tag cloud the |
Looking at the whole code, the only occurence of The Picture Wall could also be concerned, as (though this is not used) it is possible to append |
Thanks for checking @virtualtam I've proposed a fix at #54 (I don't know why htmlspecialchars was used in the first place)
We can not prevent users to input |
sebsauvage#85
The text was updated successfully, but these errors were encountered: