Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-28 16:06:09 +0300
committerGitHub <noreply@github.com>2022-09-28 16:06:09 +0300
commit980ba657344f418f7ae0f5be3f09c2df4113dee5 (patch)
tree7816e5b729a7dc023636524c97f9491acd5ef273
parent57090849560e8243a2e10efe03b06b0e67e032de (diff)
parent2acf9ffafe75b3efc2a8bdfb9218ab248b68c02b (diff)
Merge pull request #34248 from nextcloud/bugfix/noid/ignore-invalid-share-types
Ignore invalid share types
-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()) {