From bb7355a5667d1c86d3fa7e2fb4154a8961e43ddc Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 20 Mar 2024 17:32:06 +0100 Subject: [PATCH] Fix https://github.com/orgs/firefly-iii/discussions/8696 --- app/Support/Notifications/UrlValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Notifications/UrlValidator.php b/app/Support/Notifications/UrlValidator.php index 355f45e4ad..cd6ffefd87 100644 --- a/app/Support/Notifications/UrlValidator.php +++ b/app/Support/Notifications/UrlValidator.php @@ -31,6 +31,6 @@ class UrlValidator { public static function isValidWebhookURL(string $url): bool { - return str_starts_with($url, 'https://hooks.slack.com/services/') || str_starts_with($url, 'https://discord.com/api/webhooks/'); + return str_starts_with($url, 'https://hooks.slack.com/services/') || str_starts_with($url, 'https://discord.com/api/webhooks/') || str_ends_with($url, '/slack'); } }