diff options
author | Joas Schilling <coding@schilljs.com> | 2020-07-29 08:32:20 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-07-29 16:13:32 +0000 |
commit | cf0bdfd8c14dfb9cf3025ee67ee9d02abb04ec3e (patch) | |
tree | 1df13f489fe7288d1318fb1a7ffb5e55473a1969 | |
parent | 98365780caf1e68023d0d8dcf15c30ad806aa926 (diff) | |
download | nextcloud-server-cf0bdfd8c14dfb9cf3025ee67ee9d02abb04ec3e.tar.gz nextcloud-server-cf0bdfd8c14dfb9cf3025ee67ee9d02abb04ec3e.zip |
parse_url returns null in case a parameter is not found
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Http/Client/Client.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index d19f1124a23..599bf0fb7eb 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'); } |