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