Merge lp:~kees/ubuntu-cve-tracker/updates into lp:~ubuntu-security/ubuntu-cve-tracker/master

Proposed by Seth Arnold
Status: Merged
Merged at revision: 10817
Proposed branch: lp:~kees/ubuntu-cve-tracker/updates
Merge into: lp:~ubuntu-security/ubuntu-cve-tracker/master
Diff against target: 14 lines (+3/-1)
1 file modified
scripts/html_export.py (+3/-1)
To merge this branch: bzr merge lp:~kees/ubuntu-cve-tracker/updates
Reviewer Review Type Date Requested Status
Seth Arnold Approve
Review via email: mp+289851@code.launchpad.net

Description of the change

make patch: links happy

To post a comment you must log in.
Revision history for this message
Seth Arnold (seth-arnold) :
review: Approve
lp:~kees/ubuntu-cve-tracker/updates updated
10817. By Seth Arnold

merge from kees to fix patch links

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/html_export.py'
2--- scripts/html_export.py 2016-03-04 14:28:02 +0000
3+++ scripts/html_export.py 2016-03-23 00:47:44 +0000
4@@ -89,7 +89,9 @@
5 escaped_body = ""
6 for line in text.split('\n'):
7 if (field == "References" or field == "Bugs") and re.match('^http[s]?://', line):
8- escaped_body += '<a href="%s">%s</a><br />' % (quote(escape(line), ':/?&;='), escape(line))
9+ # Drop trailing information from URL
10+ url = line.split()[0]
11+ escaped_body += '<a href="%s">%s</a><br />' % (quote(escape(url), ':/?&;='), escape(line))
12 else:
13 space = ''
14 if field == 'Notes':