[Pkg-owncloud-commits] [owncloud] 216/239: Fix getRawPathInfo for the '/' edge case
David Prévot
taffit at moszumanska.debian.org
Fri Nov 29 01:32:40 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 885d04bc86ef5e34977cf7df6cb55c991d5d3306
Author: Robin Appelman <icewind at owncloud.com>
Date: Wed Nov 27 21:28:54 2013 +0100
Fix getRawPathInfo for the '/' edge case
---
lib/private/request.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/private/request.php b/lib/private/request.php
index 6b4a232..b2afda3 100755
--- a/lib/private/request.php
+++ b/lib/private/request.php
@@ -165,7 +165,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