From: justdave%bugzilla.org <> Date: Sat, 15 Jan 2005 12:24:08 +0000 (+0000) Subject: Bug 276907: Don't linkify javascript: or data: URLs in the URL field on a bug. X-Git-Tag: bugzilla-2.18~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12d1999ec28bb6e1aa114213efc0ce0b49101424;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 a5e81071e6..35344c88dd 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -285,7 +285,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 d9e3ed5465..bf2a14ede6 100644 --- a/template/en/default/bug/show-multiple.html.tmpl +++ b/template/en/default/bug/show-multiple.html.tmpl @@ -111,8 +111,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 %]