diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-07-29 18:07:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 18:07:50 +0200 |
commit | 2af77b2ed7a2bd28f0c3665dc1c7bc0199b44001 (patch) | |
tree | aedd6effda5100d9d11a534693279a8338d4be3d | |
parent | 7e28286e9dc9a61494ba3f62ed5a5f150ea88fa5 (diff) | |
parent | 9127731c52ff029a2acedfbcb497e19a5502d75e (diff) | |
download | nextcloud-server-2af77b2ed7a2bd28f0c3665dc1c7bc0199b44001.tar.gz nextcloud-server-2af77b2ed7a2bd28f0c3665dc1c7bc0199b44001.zip |
Merge pull request #22034 from nextcloud/bugfix/noid/parse-url-returns-null
parse_url returns null in case a parameter is not found
-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 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'); } |