From 2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 26 Sep 2022 09:40:53 +0200 Subject: Ignore invalid share types Signed-off-by: Joas Schilling --- apps/files_sharing/lib/Notification/Notifier.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/files_sharing/lib/Notification/Notifier.php b/apps/files_sharing/lib/Notification/Notifier.php index d35e22c935d..58f2a60fcdd 100644 --- a/apps/files_sharing/lib/Notification/Notifier.php +++ b/apps/files_sharing/lib/Notification/Notifier.php @@ -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()) { -- cgit v1.2.3