[HttpFoundation] do not use server variable PATH_INFO because it is already decoded and thus symfony is fragile to double encoding of the path

This commit is contained in:
Tobias Schultze 2013-04-12 17:03:10 +02:00
parent c8889c2c73
commit d552e4c396

View File

@ -40,12 +40,4 @@ class ApacheRequest extends Request
return $baseUrl;
}
/**
* {@inheritdoc}
*/
protected function preparePathInfo()
{
return $this->server->get('PATH_INFO') ?: substr($this->prepareRequestUri(), strlen($this->prepareBaseUrl())) ?: '/';
}
}