functions.inc.php:

- check_email: mention the invalid mail address in errormessage
  (needs text change)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1470 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 12 years ago
parent 29236ffaa4
commit 71200c1049

@ -268,13 +268,13 @@ function check_email ($email) {
// Perform non-domain-part sanity checks // Perform non-domain-part sanity checks
if (!preg_match ('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '[^@]+$/i', $ce_email)) { if (!preg_match ('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '[^@]+$/i', $ce_email)) {
return Lang::read('pInvalidMailRegex'); return Lang::read_f('pInvalidMailRegex', $email);
} }
// Determine domain name // Determine domain name
$matches=array(); $matches=array();
if (!preg_match('|@(.+)$|',$ce_email,$matches)) { if (!preg_match('|@(.+)$|',$ce_email,$matches)) {
return Lang::read('pInvalidMailRegex'); return Lang::read_f('pInvalidMailRegex', $email);
} }
$domain=$matches[1]; $domain=$matches[1];

Loading…
Cancel
Save