Auto parsing URLs ending with brackets

  • Thread starter Thread starter A.T.
  • Start date Start date
AI Thread Summary
URLs ending with closing brackets often break due to auto-parsing issues on forums, including Physics Forums. This persistent bug has been acknowledged for years and affects various forum software, including both vBulletin and phpBB. Users can work around the issue by using URL tags or manually editing posts to adjust the placement of brackets. The problem stems from the forum's inability to accurately predict user intent with URLs, particularly those that include parentheses. Suggestions for improvement include enhancing the parsing heuristics to better handle such cases.
A.T.
Science Advisor
Messages
12,919
Reaction score
3,964
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.
 
A.T. said:
I'm just surprised that this bug is so persistent. It has been there for years.

We haven't upgraded our software in 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:.
 
If it gets "fixed", we get a bug report about this (http://en.wikipedia.org/wiki/vBulletin). The forum cannot predict what the user wants, so it makes a guess. URLs ending with a brackets were rare at the time vB3 (this forum version) was developed, I think, Wikipedia was still small back then.
 
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:
 
Back
Top