summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-09-03 10:52:05 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:55:42 +0200
commitd884370844c7f807b10aa09e63cb814927011572 (patch)
treeebafe7b1be706aad48b9aed2b631c5013ee3230c /apps/dav/appinfo
parent4659e3ab599f18069765cb2414a8ace8bdf30ca8 (diff)
downloadnextcloud-server-d884370844c7f807b10aa09e63cb814927011572.tar.gz
nextcloud-server-d884370844c7f807b10aa09e63cb814927011572.zip
Use true random string as uri for public calendars - as a result we can no longer return the pre-publish-url
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r--apps/dav/appinfo/v1/caldav.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/caldav.php b/apps/dav/appinfo/v1/caldav.php
index d9606f20b72..d18e93dd7a9 100644
--- a/apps/dav/appinfo/v1/caldav.php
+++ b/apps/dav/appinfo/v1/caldav.php
@@ -47,7 +47,9 @@ $principalBackend = new Principal(
);
$db = \OC::$server->getDatabaseConnection();
$config = \OC::$server->getConfig();
-$calDavBackend = new CalDavBackend($db, $principalBackend, \OC::$server->getUserManager(), $config);
+$userManager = \OC::$server->getUserManager();
+$random = \OC::$server->getSecureRandom();
+$calDavBackend = new CalDavBackend($db, $principalBackend, $userManager, $config, $random);
$debugging = \OC::$server->getConfig()->getSystemValue('debug', false);