Fix for bug 38859: escape invalid email addresses for HTML before displaying to the user.
Patch by Myk Melez <myk@mozilla.org> r= jake@acutex.net, justdave@syndicomm.com git-svn-id: svn://10.0.0.236/trunk@94669 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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 "(<b>$addr</b>) didn't match our minimal\n";
|
||||
|
||||
Reference in New Issue
Block a user