[Pkg-owncloud-commits] [owncloud] 316/457: Prevent deleting Webdav root
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 6ae5ae2e3167c9fe15a24cdb9657ec5fa1a99188
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Fri Jun 5 16:21:55 2015 +0200
Prevent deleting Webdav root
---
lib/private/connector/sabre/directory.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/connector/sabre/directory.php b/lib/private/connector/sabre/directory.php
index 6e028ca..85756f1 100644
--- a/lib/private/connector/sabre/directory.php
+++ b/lib/private/connector/sabre/directory.php
@@ -230,7 +230,7 @@ class Directory extends \OC\Connector\Sabre\Node
*/
public function delete() {
- if (!$this->info->isDeletable()) {
+ if ($this->path === '' || $this->path === '/' || !$this->info->isDeletable()) {
throw new \Sabre\DAV\Exception\Forbidden();
}
--
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