James Cole
2024-03-20 17:32:06 +01:00
parent 1d48347f8c
commit bb7355a566

View File

@@ -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');
}
}