Skip to content

Commit d55dc1a

Browse files
authored
Merge pull request #54773 from nextcloud/backport/54744/stable30
[stable30] fix: cast fileid to string in getMountsForFileId
2 parents e8cfbd9 + a0834a6 commit d55dc1a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/private/Files/Config/UserMountCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ private function getCacheInfoFromFileId($fileId): array {
353353
* @since 9.0.0
354354
*/
355355
public function getMountsForFileId($fileId, $user = null) {
356+
$fileId = (int) $fileId;
356357
try {
357358
[$storageId, $internalPath] = $this->getCacheInfoFromFileId($fileId);
358359
} catch (NotFoundException $e) {

0 commit comments

Comments
 (0)