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 @@ ...@@ -301,7 +301,8 @@
<tr> <tr>
<td align="right"> <td align="right">
<b> <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>: <a href="[% bug.bug_file_loc FILTER html %]"><u>U</u>RL</a>:
[% ELSE %] [% ELSE %]
<u>U</u>RL: <u>U</u>RL:
......
...@@ -116,8 +116,13 @@ ...@@ -116,8 +116,13 @@
<tr> <tr>
<td colspan="4"> <td colspan="4">
<b>URL:</b>&nbsp; <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 %]"> <a href="[% bug.bug_file_loc FILTER html %]">
[% bug.bug_file_loc FILTER html %]</a> [% bug.bug_file_loc FILTER html %]</a>
[% ELSE %]
[% bug.bug_file_loc FILTER html %]
[% END %]
</tr> </tr>
<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