mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Remove duplicated slashes from the requested url
This commit is contained in:
parent
ff5715779c
commit
04075eba6b
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue