]> source.dussan.org Git - nextcloud-server.git/commitdiff
Ignore invalid share types 34248/head
authorJoas Schilling <coding@schilljs.com>
Mon, 26 Sep 2022 07:40:53 +0000 (09:40 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 26 Sep 2022 07:40:53 +0000 (09:40 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files_sharing/lib/Notification/Notifier.php

index d35e22c935d2ea009261e8903df07b5225d5df2f..58f2a60fcdd1a853d98a8dd0204c0ec0b3bca1a7 100644 (file)
@@ -157,6 +157,8 @@ class Notifier implements INotifier {
                        if ($share->getStatus() !== IShare::STATUS_PENDING) {
                                throw new AlreadyProcessedException();
                        }
+               } else {
+                       throw new \InvalidArgumentException('Invalid share type');
                }
 
                switch ($notification->getSubject()) {