From 71200c104972b0c744f25da4c2cc889418fa2820 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 5 Jun 2013 23:03:03 +0000 Subject: [PATCH] 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 --- functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 9b5dcb78..7daad7e8 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -268,13 +268,13 @@ function check_email ($email) { // Perform non-domain-part sanity checks if (!preg_match ('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '[^@]+$/i', $ce_email)) { - return Lang::read('pInvalidMailRegex'); + return Lang::read_f('pInvalidMailRegex', $email); } // Determine domain name $matches=array(); if (!preg_match('|@(.+)$|',$ce_email,$matches)) { - return Lang::read('pInvalidMailRegex'); + return Lang::read_f('pInvalidMailRegex', $email); } $domain=$matches[1];