From 4e635c0676e60f4bf0af8fc76121ed41dfc2e092 Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" <> Date: Sat, 10 Jul 2004 21:51:23 +0000 Subject: Bug 238797: minor adjustment to javascript filters to prevent tags inserted in product, component, and flag names from causing problems. r=gerv, a=justdave --- Bugzilla/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index cb6b54c90..cddd33ba4 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 -- cgit v1.2.3-24-g4f1b