Commit f796cf60 authored by justdave%bugzilla.org's avatar justdave%bugzilla.org

Bug 276907: Don't linkify javascript: or data: URLs in the URL field on a bug.

Patch by Gervase Markham <gerv@mozilla.org> r= justdave,vladd, a= justdave
parent ffdfa89b
......@@ -301,7 +301,8 @@
<tr>
<td align="right">
<b>
[% IF bug.bug_file_loc %]
[% IF bug.bug_file_loc
AND NOT bug.bug_file_loc.match("^(javascript|data)") %]
<a href="[% bug.bug_file_loc FILTER html %]"><u>U</u>RL</a>:
[% ELSE %]
<u>U</u>RL:
......
......@@ -116,8 +116,13 @@
<tr>
<td colspan="4">
<b>URL:</b>&nbsp;
[% IF bug.bug_file_loc
AND NOT bug.bug_file_loc.match("^(javascript|data)") %]
<a href="[% bug.bug_file_loc FILTER html %]">
[% bug.bug_file_loc FILTER html %]</a>
[% ELSE %]
[% bug.bug_file_loc FILTER html %]
[% END %]
</tr>
<tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment