From db5b995a6befeb79035087518573c003fad5c30c Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 14 Aug 2012 17:19:20 +0200 Subject: Disable user enumeration --- apps/calendar/appinfo/remote.php | 11 +++++++---- apps/contacts/appinfo/remote.php | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'apps') diff --git a/apps/calendar/appinfo/remote.php b/apps/calendar/appinfo/remote.php index 6669d7ce2c4..dd605072ce7 100644 --- a/apps/calendar/appinfo/remote.php +++ b/apps/calendar/appinfo/remote.php @@ -21,12 +21,15 @@ $principalBackend = new OC_Connector_Sabre_Principal(); $caldavBackend = new OC_Connector_Sabre_CalDAV(); // 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_CalDAV_CalendarRootNode = new Sabre_CalDAV_CalendarRootNode($principalBackend, $caldavBackend); +$Sabre_CalDAV_CalendarRootNode->disableListing = true; // Disable listening $nodes = array( - $collection, - new Sabre_CalDAV_CalendarRootNode($principalBackend, $caldavBackend), + $Sabre_CalDAV_Principal_Collection, + $Sabre_CalDAV_CalendarRootNode, ); // Fire up server 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 -- cgit v1.2.3