Skip to content

Commit 63c079c

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: cast fileid to string in getMountsForFileId
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 92b3e0a commit 63c079c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)