1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #6146 open

URL linkify handles HTML entities incorrectly (BB-7412)

Frode Moe
created an issue

The web interface fails to parse "www." in commit messages.

The raw bytes are doublequote, w, w, w, ., doublequote but it shows up as doublequote, w, w, w, ., ampersand, q, u, o, t, semicolon

For an example, see: https://bitbucket.org/fluff/bitbucketbug/commits/a41876beea086a923003ed8d2faf2316

Comments (6)

  1. Michael Frauenholtz [Atlassian] staff

    Thanks for logging this. It looks like our expression to determine URLs needs some work. I've added this issue to our internal backlog. We'll take care of it and let you know when we have more to share about this.

    Cheers, Michael

  2. Frode Moe reporter

    Something must have changed here, but now it appears as: doublequote, w, w, w, ., doublequote, semicolon in the original example. Note the trailing semicolon after the final quote that comes out of nowhere. In fact, the generated HTML looks kind of invalid, as the </a> is inserted between &quot and ;

  3. Frode Moe reporter
    • changed status to open

    This is still a problem, as the example link in the original report still demonstrates. Right now, the commit message is HTML-formatted as:

    Failing to parse &quot;<a href="http://www.&quot" rel="nofollow">www.&quot</a>; in commit messages.
    

    Which among other things renders as a ";" character after the link out of nowhere; also the two "&quot" are missing a final ";"

  4. Log in to comment