]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also bail out when the path is actually null 20181/head
authorJoas Schilling <coding@schilljs.com>
Thu, 26 Mar 2020 12:49:47 +0000 (13:49 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 26 Mar 2020 12:49:47 +0000 (13:49 +0100)
Apparently this can happen when a external mount was shared
that is later not available anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Share20/DefaultShareProvider.php

index e7f077f4022afb0bf4699a4ef2f9f50b38ef9e60..6a6b39526d2c3b58cc28cc8e766ca87b001491ec 100644 (file)
@@ -831,7 +831,7 @@ class DefaultShareProvider implements IShareProvider {
         */
        private function isAccessibleResult($data) {
                // exclude shares leading to deleted file entries
-               if ($data['fileid'] === null) {
+               if ($data['fileid'] === null || $data['path'] === null) {
                        return false;
                }