Commit f5154362 authored by catch's avatar catch
Browse files

Issue #3061074 by longwave, cilefen, chr.fritsch, acbramley, jungle, larowlan:...

Issue #3061074 by longwave, cilefen, chr.fritsch, acbramley, jungle, larowlan: egulias/EmailValidator prior to 2.1.22 allows addresses with a space in the domain part

(cherry picked from commit b9a61af9)
parent d4bf8fb7
......@@ -535,14 +535,14 @@
"dist": {
"type": "path",
"url": "core",
"reference": "60f96b86b97f28bf6a18f9a7e392f56caea5eba3"
"reference": "a986b9e62a8273bbdb670ac6e8829ff8e69d9cec"
},
"require": {
"asm89/stack-cors": "^1.1",
"composer/semver": "^3.0",
"doctrine/annotations": "^1.12",
"doctrine/reflection": "^1.1",
"egulias/email-validator": "^2.0",
"egulias/email-validator": "^2.1.22",
"ext-date": "*",
"ext-dom": "*",
"ext-filter": "*",
......@@ -5521,9 +5521,6 @@
"require": {
"php": "^7.1 || ^8.0"
},
"replace": {
"myclabs/deep-copy": "self.version"
},
"require-dev": {
"doctrine/collections": "^1.0",
"doctrine/common": "^2.6",
......@@ -6968,6 +6965,7 @@
"type": "github"
}
],
"abandoned": true,
"time": "2020-11-30T07:30:19+00:00"
},
{
......
......@@ -40,7 +40,7 @@
"symfony-cmf/routing": "^2.1",
"laminas/laminas-feed": "^2.12",
"stack/builder": "^1.0",
"egulias/email-validator": "^2.0",
"egulias/email-validator": "^2.1.22",
"masterminds/html5": "^2.1",
"symfony/psr-http-message-bridge": "^2.0",
"laminas/laminas-diactoros": "^2.1",
......
......@@ -25,6 +25,7 @@ public function testIsValid() {
$validator = new EmailValidator();
$this->assertTrue($validator->isValid('example@example.com'));
$this->assertFalse($validator->isValid('example@example.com@'));
$this->assertFalse($validator->isValid('example@example .com'));
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment