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 | |
parent | 62e4f55f721971dacd06649cecefe0487626aa75 (diff) | |
download | nextcloud-server-db5b995a6befeb79035087518573c003fad5c30c.tar.gz nextcloud-server-db5b995a6befeb79035087518573c003fad5c30c.zip |
Disable user enumeration
Diffstat (limited to 'apps')
-rw-r--r-- | apps/calendar/appinfo/remote.php | 11 | ||||
-rw-r--r-- | apps/contacts/appinfo/remote.php | 11 |
2 files changed, 14 insertions, 8 deletions
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 |