summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-29 08:32:20 +0200
committerJoas Schilling <coding@schilljs.com>2020-07-29 08:32:20 +0200
commit9127731c52ff029a2acedfbcb497e19a5502d75e (patch)
tree9c6da9fa09dd0f82bcce7b50d7f789011651bb81
parent1f42a8b5cb8a2e99e2ce57280e09d69a3fa5238f (diff)
downloadnextcloud-server-9127731c52ff029a2acedfbcb497e19a5502d75e.tar.gz
nextcloud-server-9127731c52ff029a2acedfbcb497e19a5502d75e.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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php
index 58234d16535..4c03d386476 100644
--- a/lib/private/Http/Client/Client.php
+++ b/lib/private/Http/Client/Client.php
@@ -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');
}