]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dont return false for internalPath
authorRobin Appelman <icewind@owncloud.com>
Fri, 16 May 2014 10:30:08 +0000 (12:30 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:13:24 +0000 (10:13 +0200)
apps/files_external/lib/webdav.php

index 3614b05e9793813bf6de486bc42daf6f152b5345..948a462074a52018c378e0390edd37a2999f94fc 100644 (file)
@@ -355,6 +355,9 @@ class DAV extends \OC\Files\Storage\Common {
         * @param string $path
         */
        public function cleanPath($path) {
+               if ($path === ""){
+                       return $path;
+               }
                $path = \OC\Files\Filesystem::normalizePath($path);
                // remove leading slash
                return substr($path, 1);