Url: Do not trim leading slahes in method setPath()

We're handling external urls specifically now.
This commit is contained in:
Johannes Meyer 2015-09-30 15:42:01 +02:00
parent 16cdd76c9e
commit bd206e3718
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}