From e17b798f200823a570f103e0c4bc189b6e3eb3ae Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Thu, 28 Nov 2024 16:01:25 +0100 Subject: [PATCH] Correct check --- lib/Service/DirectoryService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/DirectoryService.php b/lib/Service/DirectoryService.php index 4f5ae535..09286299 100644 --- a/lib/Service/DirectoryService.php +++ b/lib/Service/DirectoryService.php @@ -317,7 +317,7 @@ private function checkConditions(string $url): void } // Validate the URL - if (empty(filter_var($url, FILTER_VALIDATE_URL)) === false) { + if (filter_var($url, FILTER_VALIDATE_URL) === false) { throw new DirectoryUrlException('Invalid URL provided'); } }