summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-26 09:40:53 +0200
committerJoas Schilling <coding@schilljs.com>2022-09-26 09:40:53 +0200
commit2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b (patch)
tree3461b0989be1d8f0b22c26fb75fb9db9fb6908fe /apps/files_sharing/lib
parentec8e0f9bf62b2b20155deb3a1f748923aef462b5 (diff)
downloadnextcloud-server-2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b.tar.gz
nextcloud-server-2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b.zip
Ignore invalid share types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Notification/Notifier.php2
1 files changed, 2 insertions, 0 deletions
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()) {