Use ressource ID instead of name

pull/1197/head
Thomas Citharel 9 years ago committed by Lukas Reschke
parent f89961ddba
commit 72f35f8862
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
  1. 2
      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) {

Loading…
Cancel
Save