summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2016-01-20 12:06:04 +0200
committerMartin Peres <martin.peres@linux.intel.com>2016-01-20 12:13:45 +0200
commit00ceec2711b4bd66393519275271a170cc5b6f1c (patch)
treeb6258cce3bd1c29042fe6839a9db9a795f7e1edc
parent4b33d7429c3769ede55033becaa8272a022b20bc (diff)
compare_reports: handle bugs with " in their URL
-rwxr-xr-xstats/compare_reports.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/compare_reports.py b/stats/compare_reports.py
index 751a39a..000944a 100755
--- a/stats/compare_reports.py
+++ b/stats/compare_reports.py
@@ -349,7 +349,7 @@ html_template="""
% if len(db["commits"][commit]['commit'].bugs) > 0:
<tr><td><b>Referenced bugs</b></td><td><ul>\\
% for bug in db["commits"][commit]['commit'].bugs:
-<li><a href='${bug}' target='_blank'>${bug}</a></li>\\
+<li><a href='${bug.replace('"', '&quot;')}' target='_blank'>${bug.replace('"', '&quot;')}</a></li>\\
% endfor
</ul></td></tr>\\
% endif