[Pkg-owncloud-commits] [owncloud] 44/83: Fix getRawPathInfo for the '/' edge case

David Prévot taffit at moszumanska.debian.org
Wed Dec 18 13:05:29 UTC 2013


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

taffit pushed a commit to branch 5.0
in repository owncloud.

commit ad770024b6fdcb79457b7f8600625d2c9f031a9b
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Nov 27 21:28:54 2013 +0100

    Fix getRawPathInfo for the '/' edge case
---
 lib/request.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/request.php b/lib/request.php
index ba5c220..0abc6e7 100755
--- a/lib/request.php
+++ b/lib/request.php
@@ -164,7 +164,11 @@ class OC_Request {
 		if (strpos($path_info, $name) === 0) {
 			$path_info = substr($path_info, strlen($name));
 		}
-		return $path_info;
+		if($path_info === '/'){
+			return '';
+		} else {
+			return $path_info;
+		}
 	}
 
 	/**

-- 
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