Single quotes in tags cause server error

Submitting a post with single quotes in a tag results in an Internal Server Error. I just did that with drag'n'drop. The post still gets listed, so I assume the error comes up when trying to display. Clicking the keyword with single quotes results in another error. I.e. tags should be stripped of single quotes before passing them or tag handling should escape them.

Try this

http://forum.image.sc/tags/drag’n’drop

This seems to be a bug in Discourse. Apparently it hasn’t been reported on https://meta.discourse.org/ yet.

Since it is unlikely that this is going to happen very often, we can work around it for now by editing tags to not contain any quotes. I did so by renaming to drag-n-drop.

1 Like

And now it has :wink:

2 Likes