aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-28 15:06:09 +0200
committerGitHub <noreply@github.com>2022-09-28 15:06:09 +0200
commit980ba657344f418f7ae0f5be3f09c2df4113dee5 (patch)
tree7816e5b729a7dc023636524c97f9491acd5ef273 /apps/files_sharing
parent57090849560e8243a2e10efe03b06b0e67e032de (diff)
parent2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b (diff)
downloadnextcloud-server-980ba657344f418f7ae0f5be3f09c2df4113dee5.tar.gz
nextcloud-server-980ba657344f418f7ae0f5be3f09c2df4113dee5.zip
Merge pull request #34248 from nextcloud/bugfix/noid/ignore-invalid-share-types
Ignore invalid share types
Diffstat (limited to 'apps/files_sharing')
-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()) {