From 7a28ad5a24cdc2d5d07d9be8137d7304dd965daa Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Tue, 7 May 2024 09:21:59 +0200 Subject: [PATCH] Update licence of LoadAdditionalScriptsEvent to 3.0 or later Signed-off-by: Louis Chemineau --- lib/Sabre/PublicRootCollection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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());