2018-03-21
This commit is contained in:
parent
e0bb025d3b
commit
b7db2cdd1d
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ class Mail
|
|||
if (! \is_string($email)
|
||||
|| \mb_strlen($email, 'UTF-8') > 80 //???? for DB
|
||||
|| ! \preg_match('%^(?!\.)((?:(?:^|\.)(?>"(?!\s)(?:\x5C[^\x00-\x1F]|[^\x00-\x1F\x5C"])++(?<!\s)"|[a-zA-Z0-9!#$\%&\'*+/=?^_`{|}~-]+))+)@([^\x00-\x1F\s@]++)$%Du', $email, $matches)
|
||||
|| \mb_strlen($matches[1], 'UTF-8') > 64
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue