Url: Do not trim leading slahes in method setPath()
We're handling external urls specifically now.
This commit is contained in:
parent
16cdd76c9e
commit
bd206e3718
|
@ -75,7 +75,7 @@ class Url
|
|||
}
|
||||
|
||||
$url = new Url();
|
||||
$url->setPath($request->getPathInfo());
|
||||
$url->setPath(ltrim($request->getPathInfo(), '/'));
|
||||
|
||||
// $urlParams = UrlParams::fromQueryString($request->getQuery());
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
|
@ -240,7 +240,7 @@ class Url
|
|||
*/
|
||||
public function setPath($path)
|
||||
{
|
||||
$this->path = ltrim($path, '/');
|
||||
$this->path = $path;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue