summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2005-01-15 13:22:17 +0100
committerjustdave%bugzilla.org <>2005-01-15 13:22:17 +0100
commitf796cf6076ca7c08882c863c3d07774aedcda34a (patch)
tree7f494de16ae21ae03e3f5f8bf0520c621e59063f /template/en
parentffdfa89bed83a69785dd520aad163353c7b313c8 (diff)
downloadbugzilla-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')
-rw-r--r--template/en/default/bug/edit.html.tmpl3
-rw-r--r--template/en/default/bug/show-multiple.html.tmpl9
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>&nbsp;
- <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>