fix infinite loop when finding delegates (closes #48)

This commit is contained in:
Florian Schlichting 2016-12-28 00:49:27 +01:00
parent 11c56c85b1
commit e7c43a0689

View File

@ -405,7 +405,7 @@ EOSQL;
$this->collection->dav_name = $this->dav_name;
$this->collection->dav_displayname = sprintf( '%s proxy %s', $matches[2], $matches[3] );
$this->collection->exists = true;
$this->collection->parent_container = $matches[1] . '/';
$this->collection->parent_container = '/' . $matches[2] . '/';
}
else if ( preg_match( '#^(/[^/]+)/?$#', $this->dav_name, $matches)
|| preg_match( '#^((/principals/[^/]+/)[^/]+)/?$#', $this->dav_name, $matches) ) {