dirname can also return '.' for empty path

remotes/origin/stable45
Bart Visscher 14 years ago
parent 10b74f9d05
commit 78a022fda6
  1. 2
      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);
}

Loading…
Cancel
Save