From 78a022fda657febf4d42ba10f10fb3c7feaf7efa Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 13 Sep 2012 00:08:52 +0200 Subject: [PATCH] dirname can also return '.' for empty path --- lib/connector/sabre/node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php index 2916575e2d5..ecbbef81292 100644 --- a/lib/connector/sabre/node.php +++ b/lib/connector/sabre/node.php @@ -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); } -- 2.39.5