From: jakubvrana Date: Mon, 5 Oct 2009 09:55:26 +0000 (+0000) Subject: Speedup X-Git-Tag: v3.0.0~367 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=fb141ccf3aa04231a91d3ce7113f0d34b3b1c327;p=adminer.git Speedup git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1167 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 53bc9e9f..b6f09040 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -498,7 +498,7 @@ function apply_sql_function($function, $column) { function is_email($email) { $atom = '[-a-z0-9!#$%&\'*+/=?^_`{|}~]'; // characters of local-name $domain = '[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])'; // one domain component - return eregi("^$atom+(\\.$atom+)*@($domain?\\.)+$domain\$", $email); + return preg_match("(^$atom+(\\.$atom+)*@($domain?\\.)+$domain\$)i", $email); } /** Check whether the string is URL address