Merge pull request #54744 from nextcloud/getMountsForFileId-cast-fileid

[stable31] fix: cast fileid to string in getMountsForFileId
pull/54780/head
Andy Scherzinger 2025-09-01 09:13:47 +07:00 committed by GitHub
commit 07a849f2e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

@ -353,6 +353,7 @@ class UserMountCache implements IUserMountCache {
* @since 9.0.0
*/
public function getMountsForFileId($fileId, $user = null) {
$fileId = (int)$fileId;
try {
[$storageId, $internalPath] = $this->getCacheInfoFromFileId($fileId);
} catch (NotFoundException $e) {