Skip to content
Permalink
Browse files Browse the repository at this point in the history
Disable user enumeration
  • Loading branch information
LukasReschke committed Aug 14, 2012
1 parent 95ef80e commit 4682846
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions apps/calendar/appinfo/remote.php
Expand Up @@ -21,12 +21,15 @@
$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,
);


Expand Down
11 changes: 7 additions & 4 deletions apps/contacts/appinfo/remote.php
Expand Up @@ -36,12 +36,15 @@
$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
Expand Down

0 comments on commit 4682846

Please sign in to comment.