]> source.dussan.org Git - nextcloud-server.git/commitdiff
parse_url returns null in case a parameter is not found 22034/head
authorJoas Schilling <coding@schilljs.com>
Wed, 29 Jul 2020 06:32:20 +0000 (08:32 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 29 Jul 2020 06:32:20 +0000 (08:32 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Http/Client/Client.php

index 58234d1653589f1fdca1216303e48a5cbffd71ed..4c03d386476ba5256695faf50ce5d007db10da78 100644 (file)
@@ -158,7 +158,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');
                }