From e7c43a068975545a4821e84cd8c13f180c697548 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Wed, 28 Dec 2016 00:49:27 +0100 Subject: [PATCH] fix infinite loop when finding delegates (closes #48) --- inc/DAVResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index df95005a..269e328d 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -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) ) {