[Pkg-owncloud-commits] [owncloud] 59/90: Remove duplicated slashes from the requested url

David Prévot taffit at moszumanska.debian.org
Fri Feb 6 21:10:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 153ff1b766b1e71f11250e67430dcfd51a546142
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Jan 21 15:04:18 2015 +0100

    Remove duplicated slashes from the requested url
---
 lib/private/request.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/private/request.php b/lib/private/request.php
index 70f458c..6b805fe 100644
--- a/lib/private/request.php
+++ b/lib/private/request.php
@@ -239,6 +239,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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list