dirname can also return '.' for empty path

This commit is contained in:
Bart Visscher 2012-09-13 00:08:52 +02:00
parent 10b74f9d05
commit 78a022fda6
1 changed files with 1 additions and 1 deletions

View 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);
}