Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-07-29 19:07:50 +0300
committerGitHub <noreply@github.com>2020-07-29 19:07:50 +0300
commit2af77b2ed7a2bd28f0c3665dc1c7bc0199b44001 (patch)
treeaedd6effda5100d9d11a534693279a8338d4be3d /lib
parent7e28286e9dc9a61494ba3f62ed5a5f150ea88fa5 (diff)
parent9127731c52ff029a2acedfbcb497e19a5502d75e (diff)
Merge pull request #22034 from nextcloud/bugfix/noid/parse-url-returns-null
parse_url returns null in case a parameter is not found
Diffstat (limited to 'lib')
-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');
}