]> source.dussan.org Git - nextcloud-server.git/commitdiff
dirname can also return '.' for empty path
authorBart Visscher <bartv@thisnet.nl>
Wed, 12 Sep 2012 22:08:52 +0000 (00:08 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 12 Sep 2012 22:09:00 +0000 (00:09 +0200)
lib/connector/sabre/node.php

index 2916575e2d581d1924d816b31cdd454dc9215f8e..ecbbef81292b3a1b6da2238aff276e9594c30c81 100644 (file)
@@ -235,7 +235,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
        static public function removeETagPropertyForPath($path) {
                // remove tags from this and parent paths
                $paths = array();
-               while ($path != '/' && $path != '') {
+               while ($path != '/' && $path != '.' && $path != '') {
                        $paths[] = $path;
                        $path = dirname($path);
                }