some tweaks and bugfixes
[old-projects.git] / philter / philter / include / emails.inc.php
index 0ee1afa..b7905f2 100644 (file)
@@ -37,6 +37,8 @@ class Email {
      * @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);
     }