diff options
author | Andreas Gohr <andi@splitbrain.org> | 2017-05-26 21:37:21 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2017-05-26 21:37:21 +0200 |
commit | 3d4e333534695cfd16101585f629d952020af0bf (patch) | |
tree | 00f12e06cabc57d77ab40668c7331ec0a239f75f /inc/mail.php | |
parent | 1534dc5b3081a4fd06ca59cadbd74fdd9dcf8383 (diff) | |
download | dokuwiki-3d4e333534695cfd16101585f629d952020af0bf.tar.gz dokuwiki-3d4e333534695cfd16101585f629d952020af0bf.zip |
moved EmailAdressValidator to composer install #1970
Diffstat (limited to 'inc/mail.php')
-rw-r--r-- | inc/mail.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/mail.php b/inc/mail.php index 1d02fd689..511401ce3 100644 --- a/inc/mail.php +++ b/inc/mail.php @@ -267,10 +267,8 @@ function mail_encode_address($string,$header='',$names=true){ * @param string $email the address to check * @return bool true if address is valid */ -function mail_isvalid($email){ - $validator = new EmailAddressValidator; - $validator->allowLocalAddresses = true; - return $validator->check_email_address($email); +function mail_isvalid($email) { + return EmailAddressValidator::checkEmailAddress($email, true); } /** |