This commit is contained in:
Eduardo Gulias Davis
2020-09-26 17:48:38 +02:00
committed by GitHub
parent ef615f1d74
commit 68e418ec08
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -198,6 +198,9 @@ class DomainPart extends Parser
$domain .= $this->lexer->token['value'];
$this->lexer->moveNext();
if ($this->lexer->token['type'] === EmailLexer::S_SP) {
throw new CharNotAllowed();
}
} while (null !== $this->lexer->token['type']);
return $domain;
@@ -167,6 +167,7 @@ class RFCValidationTest extends TestCase
['test@email<'],
['test@email{'],
['test@ '],
['test@example.com []'],
];
}