From 95b72311f5a0dee47c25b00b962cf560dcab6c34 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 14 Aug 2012 17:19:20 +0200 Subject: [PATCH] Disable user enumeration --- appinfo/remote.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/appinfo/remote.php b/appinfo/remote.php index 9eee5558..6cb5b595 100644 --- a/appinfo/remote.php +++ b/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