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
2525 public function testBeforeSave ($ value , $ exceptionMessage = null )
2626 {
2727 /** @var $domain Domain */
28- $ domain = Bootstrap::getObjectManager ()->create (
29- Domain::class
30- );
28+ $ domain = Bootstrap::getObjectManager ()->create (Domain::class);
3129 $ domain ->setValue ($ value );
3230 $ domain ->setPath ('path ' );
3331 try {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ public function isValid($value)
2727 return false ;
2828 }
2929
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
3232 if (preg_match ('/[;,]/ ' , $ value )) {
3333 $ this ->_addMessages (['invalid character in cookie domain ' ]);
3434
You can’t perform that action at this time.
0 commit comments