dirname can also return '.' for empty path
This commit is contained in:
parent
10b74f9d05
commit
78a022fda6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue