mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Limiting explode to 2
This commit is contained in:
@ -187,7 +187,7 @@ class EmailValidator extends Validator
|
|||||||
$idnTest = $this->idnToAscii($value);
|
$idnTest = $this->idnToAscii($value);
|
||||||
|
|
||||||
if ($idnTest === false) {
|
if ($idnTest === false) {
|
||||||
$newPatternExploded = explode('@', $this->pattern);
|
$newPatternExploded = explode('@', $this->pattern, 2);
|
||||||
$newPattern = $newPatternExploded[0] . "$/";
|
$newPattern = $newPatternExploded[0] . "$/";
|
||||||
|
|
||||||
$newFullPatternExploded = explode('@', $this->fullPattern);
|
$newFullPatternExploded = explode('@', $this->fullPattern);
|
||||||
|
Reference in New Issue
Block a user