diff --git a/mozilla/webtools/bugzilla/CGI.pl b/mozilla/webtools/bugzilla/CGI.pl index 587ecc07473..e82ce891148 100644 --- a/mozilla/webtools/bugzilla/CGI.pl +++ b/mozilla/webtools/bugzilla/CGI.pl @@ -593,6 +593,9 @@ sub CheckEmailSyntax { if ($addr !~ /$match/) { print "Content-type: text/html\n\n"; + # For security, escape HTML special characters. + $addr = html_quote($addr); + PutHeader("Check e-mail syntax"); print "The e-mail address you entered\n"; print "($addr) didn't match our minimal\n";