Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-08-14 19:19:20 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-08-24 17:00:53 +0400
commit1d530192b9b1012d7a450d5b56173ec776ed6f26 (patch)
tree48a7782d905cb23178859ee8be7a27652c7066d5 /apps/calendar
parent12df81fe0ba5229cd9e80c86a960385efd48e459 (diff)
Disable user enumeration
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/appinfo/remote.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/calendar/appinfo/remote.php b/apps/calendar/appinfo/remote.php
index 93d57b2e40c..d500ec1080a 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,
);