mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Various fixes after composer deps update (#638)
This commit is contained in:
parent
96fe6cc5b7
commit
12f09f7995
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,8 @@ use Egulias\EmailValidator\EmailValidator;
|
|||
use Egulias\EmailValidator\Validation\DNSCheckValidation;
|
||||
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd;
|
||||
use Egulias\EmailValidator\Validation\RFCValidation;
|
||||
use Egulias\EmailValidator\Validation\SpoofCheckValidation;
|
||||
use Egulias\EmailValidator\Validation\MessageIDValidation;
|
||||
use Egulias\EmailValidator\Validation\Extra\SpoofCheckValidation;
|
||||
|
||||
/**
|
||||
* Class Validate
|
||||
|
@ -110,6 +111,7 @@ class Validate
|
|||
$multipleValidations = new MultipleValidationWithAnd([
|
||||
new RFCValidation(), // Standard RFC-like email validation.
|
||||
new DNSCheckValidation(), // Will check if there are DNS records that signal that the server accepts emails. This does not entail that the email exists.
|
||||
new MessageIDValidation(), // Follows RFC2822 for message-id to validate that field, that has some differences in the domain part.
|
||||
new SpoofCheckValidation() // Will check for multi-utf-8 chars that can signal an erroneous email name.
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue