Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-1593

Source code with ampersands isn't escaped properly in diffs.

    XMLWordPrintable

Details

    Description

      In changeset diffs, source lines with HTML entities in them don't display properly. The entities aren't escaped, and so are output verbatim to the browser.

      For example, in http://bitbucket.org/ned/coveragepy/changeset/ee491a08fa05/#chg-coverage/htmlfiles/pyfile.html, line 46 contains:

      <span class="strut"> </span>

      but looks like it is:

      <span class="strut"> </span>

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: