diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-26 14:35:25 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-26 14:21:18 +0000 |
commit | 26cf5939ed9a8286899453b367b39d0ff0e83610 (patch) | |
tree | 0b26f29327e73806eba09a81a01bf085ea46f9a6 /apps | |
parent | f25c7b7e400ff9d6bc984b35844229fe4cc08bb5 (diff) | |
download | nextcloud-server-26cf5939ed9a8286899453b367b39d0ff0e83610.tar.gz nextcloud-server-26cf5939ed9a8286899453b367b39d0ff0e83610.zip |
fix(files_sharing): Check if propfind response is valid before accessing share permission propsbackport/48366/stable28
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/External/Storage.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/External/Storage.php b/apps/files_sharing/lib/External/Storage.php index 03e377147e9..3a52604ba8d 100644 --- a/apps/files_sharing/lib/External/Storage.php +++ b/apps/files_sharing/lib/External/Storage.php @@ -384,6 +384,10 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage, public function getPermissions($path): int { $response = $this->propfind($path); + if ($response === false) { + return 0; + } + $ocsPermissions = $response['{http://open-collaboration-services.org/ns}share-permissions'] ?? null; $ocmPermissions = $response['{http://open-cloud-mesh.org/ns}share-permissions'] ?? null; $ocPermissions = $response['{http://owncloud.org/ns}permissions'] ?? null; |