projects
/
old-projects.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some tweaks and bugfixes
[old-projects.git]
/
philter
/
philter
/
include
/
emails.inc.php
diff --git
a/philter/philter/include/emails.inc.php
b/philter/philter/include/emails.inc.php
index
0ee1afa
..
b7905f2
100644
(file)
--- a/
philter/philter/include/emails.inc.php
+++ b/
philter/philter/include/emails.inc.php
@@
-37,6
+37,8
@@
class Email {
* @return true if the string is a valid email, false else
*/
function Check($_string) {
* @return true if the string is a valid email, false else
*/
function Check($_string) {
+ if(function_exists('isvalid_email_redirection'))
+ return isvalid_email_redirection($_string);
return preg_match("/^[\w\-.]+(\+[\w\-.]+)?@[\w\-.]+\.[a-zA-Z]{2,44}$/", $_string);
}
return preg_match("/^[\w\-.]+(\+[\w\-.]+)?@[\w\-.]+\.[a-zA-Z]{2,44}$/", $_string);
}