Speedup
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1167 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
7741dfb13d
commit
fb141ccf3a
|
@ -498,7 +498,7 @@ function apply_sql_function($function, $column) {
|
||||||
function is_email($email) {
|
function is_email($email) {
|
||||||
$atom = '[-a-z0-9!#$%&\'*+/=?^_`{|}~]'; // characters of local-name
|
$atom = '[-a-z0-9!#$%&\'*+/=?^_`{|}~]'; // characters of local-name
|
||||||
$domain = '[a-z0-9]([-a-z0-9]{0,61}[a-z0-9])'; // one domain component
|
$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
|
/** Check whether the string is URL address
|
||||||
|
|
Loading…
Reference in a new issue