From ac6f24a1896ec37128e1506a0255ea84d11f857e Mon Sep 17 00:00:00 2001 From: Akhil Date: Tue, 18 Jun 2024 12:23:55 +0530 Subject: [PATCH 1/2] check if blacklisted_domains is empty --- lib/Service/UserService.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/Service/UserService.php b/lib/Service/UserService.php index 0101604b..ecf5bddd 100644 --- a/lib/Service/UserService.php +++ b/lib/Service/UserService.php @@ -287,8 +287,15 @@ class UserService { public function isBlacklistedEmail(string $email): bool { // Get the blacklisted domains from configuration $blacklistedDomainsInJson = $this->config->getAppValue(Application::APP_ID, 'blacklisted_domains'); + if (empty($blacklistedDomainsInJson)) { + return false; + } $blacklistedDomains = json_decode($blacklistedDomainsInJson, true); - + + if (empty($blacklistedDomains)) { + return false; + } + // Split the email address into parts using explode $emailParts = explode('@', $email); -- GitLab From e2ee5b8ce04bb87546c74bebe8a64d6a2d28b8d6 Mon Sep 17 00:00:00 2001 From: Akhil Date: Tue, 18 Jun 2024 12:26:26 +0530 Subject: [PATCH 2/2] Bump version --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 2f017641..9d095387 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -10,7 +10,7 @@ - 6.0.2 + 6.0.3 agpl Murena SAS EcloudAccounts -- GitLab