From: justdave%bugzilla.org <> Date: Sat, 10 Jul 2004 21:51:23 +0000 (+0000) Subject: Bug 238797: minor adjustment to javascript filters to prevent tags inserted in produc... X-Git-Tag: bugzilla-2.18rc1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e635c0676e60f4bf0af8fc76121ed41dfc2e092;p=thirdparty%2Fbugzilla.git Bug 238797: minor adjustment to javascript filters to prevent tags inserted in product, component, and flag names from causing problems. r=gerv, a=justdave --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index cb6b54c906..cddd33ba47 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -229,7 +229,7 @@ sub create { # and newlines/carriage returns escaped for use in JS strings. js => sub { my ($var) = @_; - $var =~ s/([\\\'\"])/\\$1/g; + $var =~ s/([\\\'\"\/])/\\$1/g; $var =~ s/\n/\\n/g; $var =~ s/\r/\\r/g; $var =~ s/\@/\\x40/g; # anti-spam for email addresses diff --git a/template/en/default/admin/flag-type/list.html.tmpl b/template/en/default/admin/flag-type/list.html.tmpl index 0185df0c79..44cbf36c29 100644 --- a/template/en/default/admin/flag-type/list.html.tmpl +++ b/template/en/default/admin/flag-type/list.html.tmpl @@ -98,7 +98,7 @@ Copy | Delete diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl index f0194155d8..b93f8099db 100644 --- a/template/en/default/bug/knob.html.tmpl +++ b/template/en/default/bug/knob.html.tmpl @@ -97,7 +97,7 @@ [% terms.bug %] to