aboutsummaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-01-23 17:13:37 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-01-23 17:13:37 +0100
commit96624a115fe60b8ebdbbecbc2b38a7566d4e4c59 (patch)
tree7b7c92645371edd42efe647c4c731f0a971f4e71 /userprefs.cgi
parent3d3cb31a1f4f7c09de165805298e4ea2feaba7cd (diff)
downloadbugs-96624a115fe60b8ebdbbecbc2b38a7566d4e4c59.tar
bugs-96624a115fe60b8ebdbbecbc2b38a7566d4e4c59.tar.gz
bugs-96624a115fe60b8ebdbbecbc2b38a7566d4e4c59.tar.bz2
bugs-96624a115fe60b8ebdbbecbc2b38a7566d4e4c59.tar.xz
bugs-96624a115fe60b8ebdbbecbc2b38a7566d4e4c59.zip
Bug 319953: Missing real email syntax check
r=glob a=LpSolit
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index ac323c65e..e527b1489 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -111,8 +111,7 @@ sub SaveAccount {
}
# Before changing an email address, confirm one does not exist.
- validate_email_syntax($new_login_name)
- || ThrowUserError('illegal_email_address', {addr => $new_login_name});
+ check_email_syntax($new_login_name);
is_available_username($new_login_name)
|| ThrowUserError("account_exists", {email => $new_login_name});