File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
dev/tests/integration/testsuite/Magento/Cookie/Model/Config/Backend
lib/internal/Magento/Framework/Session/Config/Validator Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ class DomainTest extends TestCase
25
25
public function testBeforeSave ($ value , $ exceptionMessage = null )
26
26
{
27
27
/** @var $domain Domain */
28
- $ domain = Bootstrap::getObjectManager ()->create (
29
- Domain::class
30
- );
28
+ $ domain = Bootstrap::getObjectManager ()->create (Domain::class);
31
29
$ domain ->setValue ($ value );
32
30
$ domain ->setPath ('path ' );
33
31
try {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ public function isValid($value)
27
27
return false ;
28
28
}
29
29
30
- //Hostname validator allows [;,] and returns the validator as true but these are unacceptable cookie domain
31
- //characters hence need explicit validation for the same
30
+ //Hostname validator allows [;,] and returns the validator as true but,
31
+ //these are unacceptable cookie domain characters hence need explicit validation for the same
32
32
if (preg_match ('/[;,]/ ' , $ value )) {
33
33
$ this ->_addMessages (['invalid character in cookie domain ' ]);
34
34
You can’t perform that action at this time.
0 commit comments