From 72f35f8862f92cefb0e4dc8fb0b4f75f0270690a Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 7 Jul 2016 09:46:50 +0200 Subject: [PATCH] Use ressource ID instead of name --- apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php index f0be2f3a1b6..67e04d7a8b1 100644 --- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php +++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php @@ -72,7 +72,7 @@ class PublishPlugin extends ServerPlugin public function propFind(PropFind $propFind, INode $node) { if ($node instanceof Calendar) { - $token = md5(\OC::$server->getConfig()->getSystemValue('secret', '').$node->getName()); + $token = md5(\OC::$server->getConfig()->getSystemValue('secret', '').$node->getResourceId()); $publishUrl = $this->server->getBaseUri() . 'public-calendars/' . $token; $propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node, $publishUrl) { -- 2.39.5