esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 239 forks source link

Fix spacing issue in BBCode parser #392

Closed jgknight closed 9 years ago

jgknight commented 9 years ago

Fixes #284 - Adding spaces before & after a URL for the link BBCode causes esoTalk to output broken HTML due to the inline link generator. This adds to the BBCode parser to check that there are no spaces leading the URL.

tvb commented 9 years ago

:+1:

jgknight commented 9 years ago

I tested this on my local install. If a space is added before the URL, then the bbcode will display just as regular text. While this is not the best solution overall, I think it's better than displaying broken HTML. This is similar to how other forum software behaves.