From cf0bdfd8c14dfb9cf3025ee67ee9d02abb04ec3e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 29 Jul 2020 08:32:20 +0200 Subject: [PATCH] parse_url returns null in case a parameter is not found Signed-off-by: Joas Schilling --- lib/private/Http/Client/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index d19f1124a2..599bf0fb7e 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -154,7 +154,7 @@ class Client implements IClient { } $host = parse_url($uri, PHP_URL_HOST); - if ($host === false) { + if ($host === false || $host === null) { $this->logger->warning("Could not detect any host in $uri"); throw new LocalServerException('Could not detect any host'); }