diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-12 09:16:55 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-12 09:16:55 +0100 |
commit | c998f620d0b19e3f832ca7a65134035cf81e6d6f (patch) | |
tree | 4418d7a4f4e46731e8ed876693bd1a1139a9eb2b | |
parent | 9aef0421cfc98c98db81c777c1be5a9315324381 (diff) | |
parent | 4b943a48108045d893b56243a3866b2c02faf55d (diff) | |
download | nextcloud-server-c998f620d0b19e3f832ca7a65134035cf81e6d6f.tar.gz nextcloud-server-c998f620d0b19e3f832ca7a65134035cf81e6d6f.zip |
Merge pull request #12105 from owncloud/dav-fixcleanpath
Fix root path handling for WebDAV ext storage
-rw-r--r-- | lib/private/files/storage/dav.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index 7f53704e94f..26fa69408a8 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -433,6 +433,7 @@ class DAV extends \OC\Files\Storage\Common { public function getPermissions($path) { $this->init(); + $path = $this->cleanPath($path); $response = $this->client->propfind($this->encodePath($path), array('{http://owncloud.org/ns}permissions')); if (isset($response['{http://owncloud.org/ns}permissions'])) { return $this->parsePermissions($response['{http://owncloud.org/ns}permissions']); @@ -477,6 +478,7 @@ class DAV extends \OC\Files\Storage\Common { */ public function hasUpdated($path, $time) { $this->init(); + $path = $this->cleanPath($path); try { $response = $this->client->propfind($this->encodePath($path), array( '{DAV:}getlastmodified', |