diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-07-07 09:46:50 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:35 +0200 |
commit | 72f35f8862f92cefb0e4dc8fb0b4f75f0270690a (patch) | |
tree | 86620ff9e0de65ccba0fb25fc40d019dc782efdf /apps | |
parent | f89961ddba9c8c34fb76b2c26ad2dd64762f431f (diff) | |
download | nextcloud-server-72f35f8862f92cefb0e4dc8fb0b4f75f0270690a.tar.gz nextcloud-server-72f35f8862f92cefb0e4dc8fb0b4f75f0270690a.zip |
Use ressource ID instead of name
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |