From: justdave%bugzilla.org <> Date: Sat, 15 Jan 2005 12:22:17 +0000 (+0000) Subject: Bug 276907: Don't linkify javascript: or data: URLs in the URL field on a bug. X-Git-Tag: bugzilla-2.19.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f796cf6076ca7c08882c863c3d07774aedcda34a;p=thirdparty%2Fbugzilla.git Bug 276907: Don't linkify javascript: or data: URLs in the URL field on a bug. Patch by Gervase Markham r= justdave,vladd, a= justdave --- diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 94334066d6..3a9fed0c7b 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -301,7 +301,8 @@ - [% IF bug.bug_file_loc %] + [% IF bug.bug_file_loc + AND NOT bug.bug_file_loc.match("^(javascript|data)") %] URL: [% ELSE %] URL: diff --git a/template/en/default/bug/show-multiple.html.tmpl b/template/en/default/bug/show-multiple.html.tmpl index a985fccb4b..a6c5fccea9 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -116,8 +116,13 @@ URL:  - - [% bug.bug_file_loc FILTER html %] + [% IF bug.bug_file_loc + AND NOT bug.bug_file_loc.match("^(javascript|data)") %] + + [% bug.bug_file_loc FILTER html %] + [% ELSE %] + [% bug.bug_file_loc FILTER html %] + [% END %]