Refactor of domain exceptions

This commit is contained in:
Eduardo Gulias Davis
2014-05-08 18:26:53 +02:00
parent 86a022cd66
commit 045ebd2f8e
+2 -2
View File
@@ -314,7 +314,7 @@ class EmailParser
}
$this->checkConsecutiveDots();
$this->checkDomainPartExceptions();
$this->checkDomainPartExceptions($prev);
if ($this->hasBrackets()) {
$this->parseDomainLiteral();
@@ -490,7 +490,7 @@ class EmailParser
return true;
}
private function checkDomainPartExceptions()
private function checkDomainPartExceptions($prev)
{
if ($this->lexer->token['type'] === EmailLexer::S_AT) {
throw new \InvalidArgumentException('ERR_CONSECUTIVEATS');