[Pkg-owncloud-commits] [php-sabredav] 01/06: guessBaseUrl now checks if PATH_INFO is empty.

David Prévot taffit at moszumanska.debian.org
Sat Nov 30 15:44:21 UTC 2013


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

taffit pushed a commit to tag version-1.2.5
in repository php-sabredav.

commit c43faf28bb0832c9c5927a5c9408f1ff1dda6bad
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Wed Aug 18 22:25:10 2010 +0200

    guessBaseUrl now checks if PATH_INFO is empty.
    
    Fixes Issue 73.
---
 ChangeLog                | 3 +++
 lib/Sabre/DAV/Server.php | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d32d4cd..825a0f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+1.2.5 (2010-08-18)
+	* Fixed: Issue 73: guessBaseUrl fails for some servers.
+
 1.2.4 (2010-07-13)
 	* Fixed: Issue 62: Guessing baseUrl fails when url contains a
 	  query-string.
diff --git a/lib/Sabre/DAV/Server.php b/lib/Sabre/DAV/Server.php
index ef091e9..4b62ebf 100644
--- a/lib/Sabre/DAV/Server.php
+++ b/lib/Sabre/DAV/Server.php
@@ -261,7 +261,7 @@ class Sabre_DAV_Server {
         $uri = $this->httpRequest->getRawServerValue('REQUEST_URI');
 
         // If PATH_INFO is not found, we just return /
-        if (!is_null($pathInfo)) {
+        if (!empty($pathInfo)) {
 
             // We need to make sure we ignore the QUERY_STRING part
             if ($pos = strpos($uri,'?'))

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



More information about the Pkg-owncloud-commits mailing list