Skip to content

Commit cd0ad28

Browse files
author
Bohdan Korablov
committed
MAGETWO-56317: [GitHub] -[2.1.0] underscore in site url breaks admin redirect - The page isn't redirecting properly #5809
1 parent e6000d7 commit cd0ad28

File tree

1 file changed

+2
-5
lines changed
  • app/code/Magento/Config/Model/Config/Backend

1 file changed

+2
-5
lines changed

app/code/Magento/Config/Model/Config/Backend/Baseurl.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ private function _validateFullyQualifiedUrl($value)
202202
*/
203203
private function _isFullyQualifiedUrl($value)
204204
{
205-
$url = parse_url($value);
206-
207-
return isset($url['scheme']) && isset($url['host']) && preg_match('/\/$/', $value)
208-
&& $this->getSimpleUrlValidator()->isValid($value);
205+
return preg_match('/\/$/', $value) && $this->getSimpleUrlValidator()->isValid($value);
209206
}
210207

211208
/**
@@ -229,7 +226,7 @@ public function afterSave()
229226
}
230227

231228
/**
232-
* Get link interface factory
229+
* Get Simple URL Validator
233230
*
234231
* @deprecated
235232
* @return SimpleValidator

0 commit comments

Comments
 (0)