Limiting explode to 2

This commit is contained in:
Aaron Mueller
2021-03-31 15:21:19 -07:00
parent 808c64d900
commit d02d60e070

View File

@ -187,7 +187,7 @@ class EmailValidator extends Validator
$idnTest = $this->idnToAscii($value);
if ($idnTest === false) {
$newPatternExploded = explode('@', $this->pattern);
$newPatternExploded = explode('@', $this->pattern, 2);
$newPattern = $newPatternExploded[0] . "$/";
$newFullPatternExploded = explode('@', $this->fullPattern);