Auto parsing URLs ending with brackets

  • Thread starter Thread starter A.T.
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
7 replies · 4K views
Messages
13,347
Reaction score
4,237
A still very common bug on forums including PF. When you include a URL ending with a closing bracket, like:

http://en.wikipedia.org/wiki/Cohesion_(chemistry)[/B]

the auto parser will insert the closing URL-tag before the closing bracket, breaking the URL.
 
Last edited by a moderator:
Physics news on Phys.org
http://en.wikipedia.org/wiki/Cohesion_(chemistry )
[STRIKE]How come it's not happening to me?[/STRIKE]
Okay, I think I saw it.
 
Last edited by a moderator:
Yes, I know the workarounds. You can also edit the post after auto-parsing and move the bracket into the tag. But often I forget it.

I'm just surprised that this bug is so persistent. It has been there for years.
 
I first thought it's a problem with vBulletin, but I just tested with a phpBB(Latest version) forum and it's there too. :weird:.
 
You could probably improve the "guessing" with the heuristic that parentheses in URLs usually come in matched pairs.

But technically they don't have to do that. And some internet-lawyer is going to complain about URLs ending in "." not being parsed correctly :smile: