mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Remove duplicated slashes from the requested url
This commit is contained in:
parent
ff5715779c
commit
04075eba6b
@ -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 New Issue
Block a user