diff options
author | justdave%bugzilla.org <> | 2005-01-15 13:22:17 +0100 |
---|---|---|
committer | justdave%bugzilla.org <> | 2005-01-15 13:22:17 +0100 |
commit | f796cf6076ca7c08882c863c3d07774aedcda34a (patch) | |
tree | 7f494de16ae21ae03e3f5f8bf0520c621e59063f /template/en/default | |
parent | ffdfa89bed83a69785dd520aad163353c7b313c8 (diff) | |
download | bugzilla-f796cf6076ca7c08882c863c3d07774aedcda34a.tar.gz bugzilla-f796cf6076ca7c08882c863c3d07774aedcda34a.tar.xz |
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
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/bug/show-multiple.html.tmpl | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 94334066d..3a9fed0c7 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -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: diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl index a985fccb4..a6c5fccea 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -116,8 +116,13 @@ <tr> <td colspan="4"> <b>URL:</b> - <a href="[% bug.bug_file_loc FILTER html %]"> - [% bug.bug_file_loc FILTER html %]</a> + [% 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> |