[Pkg-owncloud-commits] [owncloud] 373/394: backport 6acbadf41833c8d5a78aabb06c6c7e0f4f4c019b

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:53 UTC 2013


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

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit c33b217bfabd746d35e17168f86d49fd13448613
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Wed Mar 6 16:03:51 2013 +0100

    backport 6acbadf41833c8d5a78aabb06c6c7e0f4f4c019b
---
 lib/connector/sabre/directory.php |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php
index a586b27..cd7165f 100644
--- a/lib/connector/sabre/directory.php
+++ b/lib/connector/sabre/directory.php
@@ -78,7 +78,9 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
 	public function createDirectory($name) {
 
 		$newPath = $this->path . '/' . $name;
-		OC_Filesystem::mkdir($newPath);
+		if(!OC_Filesystem::mkdir($newPath)) {
+			throw new Sabre_DAV_Exception_Forbidden('Could not create directory '.$newPath);
+		}
 
 	}
 
@@ -120,7 +122,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
 		$source = $this->getFileSource($this->path);
 		$path = $source['path'];
 		$user = $source['user'];
-		
+
 		$folder_content = OC_Files::getDirectoryContent($this->path);
 		$paths = array();
 		foreach($folder_content as $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