Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Auto parsing URLs ending with brackets

  1. Jul 8, 2014 #1

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    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] [Broken]

    the auto parser will insert the closing URL-tag before the closing bracket, breaking the URL.
     
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. Jul 8, 2014 #2

    adjacent

    User Avatar
    Gold Member

  4. Jul 8, 2014 #3

    PhysicoRaj

    User Avatar
    Gold Member

    http://en.wikipedia.org/wiki/Cohesion_(chemistry [Broken])
    [STRIKE]How come it's not happening to me?[/STRIKE]
    Okay, I think I saw it.
     
    Last edited by a moderator: May 6, 2017
  5. Jul 8, 2014 #4

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    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.
     
  6. Jul 8, 2014 #5
    We haven't upgraded our software in years :)
     
  7. Jul 8, 2014 #6

    adjacent

    User Avatar
    Gold Member

    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:.
     
  8. Jul 8, 2014 #7

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    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.
     
  9. Jul 8, 2014 #8

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    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:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Auto parsing URLs ending with brackets
  1. URL for searching (Replies: 1)

  2. URLs in signatures (Replies: 4)

  3. [url][/url] tag? (Replies: 4)

  4. URL apostrophe bug (Replies: 13)

Loading...