Auto parsing URLs ending with brackets

  • Thread starter Thread starter A.T.
  • Start date Start date
A.T.
Science Advisor
Messages
13,287
Reaction score
4,194
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:
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
5
Views
948
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
3K