Use ressource ID instead of name
This commit is contained in:
parent
f89961ddba
commit
72f35f8862
|
@ -72,7 +72,7 @@ class PublishPlugin extends ServerPlugin
|
||||||
public function propFind(PropFind $propFind, INode $node)
|
public function propFind(PropFind $propFind, INode $node)
|
||||||
{
|
{
|
||||||
if ($node instanceof Calendar) {
|
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;
|
$publishUrl = $this->server->getBaseUri() . 'public-calendars/' . $token;
|
||||||
|
|
||||||
$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node, $publishUrl) {
|
$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node, $publishUrl) {
|
||||||
|
|
Loading…
Reference in New Issue