Skip to content
Snippets Groups Projects
Commit 04075eba authored by Robin Appelman's avatar Robin Appelman
Browse files

Remove duplicated slashes from the requested url

parent ff571577
No related branches found
No related tags found
No related merge requests found
......@@ -278,6 +278,8 @@ class OC_Request {
$requestUri = '/' . ltrim($requestUri, '/');
}
$requestUri = preg_replace('%/{2,}%', '/', $requestUri);
// Remove the query string from REQUEST_URI
if ($pos = strpos($requestUri, '?')) {
$requestUri = substr($requestUri, 0, $pos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment