diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-08-14 17:19:20 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-08-14 17:23:26 +0200 |
commit | db5b995a6befeb79035087518573c003fad5c30c (patch) | |
tree | e4fee5ef703f622a2fb335851aec84d607ead57e /apps/contacts/appinfo/remote.php | |
parent | 62e4f55f721971dacd06649cecefe0487626aa75 (diff) | |
download | nextcloud-server-db5b995a6befeb79035087518573c003fad5c30c.tar.gz nextcloud-server-db5b995a6befeb79035087518573c003fad5c30c.zip |
Disable user enumeration
Diffstat (limited to 'apps/contacts/appinfo/remote.php')
-rw-r--r-- | apps/contacts/appinfo/remote.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php index 9eee55583a4..6cb5b59525c 100644 --- a/apps/contacts/appinfo/remote.php +++ b/apps/contacts/appinfo/remote.php @@ -36,12 +36,15 @@ $principalBackend = new OC_Connector_Sabre_Principal(); $carddavBackend = new OC_Connector_Sabre_CardDAV(); // Root nodes -$collection = new Sabre_CalDAV_Principal_Collection($principalBackend); -$collection->disableListing = true; // Disable listening +$Sabre_CalDAV_Principal_Collection = new Sabre_CalDAV_Principal_Collection($principalBackend); +$Sabre_CalDAV_Principal_Collection->disableListing = true; // Disable listening + +$Sabre_CardDAV_AddressBookRoot = new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend); +$Sabre_CardDAV_AddressBookRoot->disableListing = true; // Disable listening $nodes = array( - $collection, - new Sabre_CardDAV_AddressBookRoot($principalBackend, $carddavBackend), + $Sabre_CalDAV_Principal_Collection, + $Sabre_CardDAV_AddressBookRoot, ); // Fire up server |