[Pkg-owncloud-commits] [owncloud] 19/73: Disable user enumeration
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:00 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit 4682846d3ecdad15c6a60126dda75eb7fa97c707
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Tue Aug 14 17:19:20 2012 +0200
Disable user enumeration
---
apps/calendar/appinfo/remote.php | 11 +++++++----
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 93d57b2..d500ec1 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,
);
diff --git a/apps/contacts/appinfo/remote.php b/apps/contacts/appinfo/remote.php
index 2a6a3be..2810358 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list