diff --git a/lib/Sabre/PublicRootCollection.php b/lib/Sabre/PublicRootCollection.php index 94d08316c..926ef7013 100644 --- a/lib/Sabre/PublicRootCollection.php +++ b/lib/Sabre/PublicRootCollection.php @@ -59,20 +59,20 @@ public function getChildForPrincipal(array $principalInfo): PublicAlbumRoot { /** * Returns a child object, by its token. * - * @param string $name + * @param string $token * * @throws NotFound * * @return DAV\INode */ - public function getChild($name) { + public function getChild($token) { $this->throttler->sleepDelayOrThrowOnMax($this->request->getRemoteAddress(), self::BRUTEFORCE_ACTION); - if (is_null($name)) { + if (is_null($token)) { throw new \Sabre\DAV\Exception\Forbidden(); } - $albums = $this->albumMapper->getSharedAlbumsForCollaboratorWithFiles($name, AlbumMapper::TYPE_LINK); + $albums = $this->albumMapper->getSharedAlbumsForCollaboratorWithFiles($token, AlbumMapper::TYPE_LINK); if (count($albums) !== 1) { $this->throttler->registerAttempt(self::BRUTEFORCE_ACTION, $this->request->getRemoteAddress());