[Pkg-owncloud-commits] [php-sabredav] 22/23: Fixes Issue 39

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


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

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

commit 35d4886bb421067ecb094ae57adb96820769ab85
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Tue Mar 30 14:49:45 2010 +0900

    Fixes Issue 39
---
 lib/Sabre/DAV/Server.php | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/Sabre/DAV/Server.php b/lib/Sabre/DAV/Server.php
index 761297c..a30c878 100644
--- a/lib/Sabre/DAV/Server.php
+++ b/lib/Sabre/DAV/Server.php
@@ -1029,12 +1029,11 @@ class Sabre_DAV_Server {
      */
     public function createDirectory($uri) {
 
-        $parentUri = dirname($uri);
-        if ($parentUri=='.') $parentUri = '';
+        list($dir, $name) = Sabre_DAV_URLUtil::splitPath($uri);
         if (!$this->broadcastEvent('beforeBind',array($uri))) return;
 
-        $parent = $this->tree->getNodeForPath($parentUri);
-        $parent->createDirectory(basename($uri));
+        $parent = $this->tree->getNodeForPath($dir);
+        $parent->createDirectory($name);
 
         $this->broadcastEvent('afterBind',array($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