diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-13 00:08:52 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-13 00:09:00 +0200 |
commit | 78a022fda657febf4d42ba10f10fb3c7feaf7efa (patch) | |
tree | f3c41a46ad35360883df836c5d4c479a970e9f18 /lib/connector/sabre/node.php | |
parent | 10b74f9d057a22f018eaaf535cb597354d82e948 (diff) | |
download | nextcloud-server-78a022fda657febf4d42ba10f10fb3c7feaf7efa.tar.gz nextcloud-server-78a022fda657febf4d42ba10f10fb3c7feaf7efa.zip |
dirname can also return '.' for empty path
Diffstat (limited to 'lib/connector/sabre/node.php')
-rw-r--r-- | lib/connector/sabre/node.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |