Skip to content

Commit

Permalink
[HttpFoundation] do not use server variable PATH_INFO because it is a…
Browse files Browse the repository at this point in the history
…lready decoded and thus symfony is fragile to double encoding of the path
  • Loading branch information
Tobion committed Apr 12, 2013
1 parent c8889c2 commit d552e4c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Symfony/Component/HttpFoundation/ApacheRequest.php
Expand Up @@ -40,12 +40,4 @@ protected function prepareBaseUrl()

return $baseUrl;
}

/**
* {@inheritdoc}
*/
protected function preparePathInfo()
{
return $this->server->get('PATH_INFO') ?: substr($this->prepareRequestUri(), strlen($this->prepareBaseUrl())) ?: '/';
}
}

0 comments on commit d552e4c

Please sign in to comment.