summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-09-18 07:12:56 +0200
committerjustdave%syndicomm.com <>2003-09-18 07:12:56 +0200
commit0ca55bd31d48436feabd6ad474eb2900c937e768 (patch)
tree9b29fa0090a9a9e99849079c1ff01aa611b17245 /Bugzilla/Template.pm
parent5852e76888924d197ae0a2322ce27b506c46b900 (diff)
downloadbugzilla-0ca55bd31d48436feabd6ad474eb2900c937e768.tar.gz
bugzilla-0ca55bd31d48436feabd6ad474eb2900c937e768.tar.xz
Bug 219216: Javascript improperly using FILTER html instead of FILTER js causing data with @ produced by javascript to show up as &#64;
r=timeless, a=justdave
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index f3e3685f7..f9342e11f 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -194,6 +194,7 @@ sub create {
$var =~ s/([\\\'\"])/\\$1/g;
$var =~ s/\n/\\n/g;
$var =~ s/\r/\\r/g;
+ $var =~ s/\@/\\x40/g; # anti-spam for email addresses
return $var;
},