Merge pull request #22034 from nextcloud/bugfix/noid/parse-url-returns-null

parse_url returns null in case a parameter is not found
pull/22052/head
Joas Schilling 5 years ago committed by GitHub
commit 2af77b2ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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');
}

Loading…
Cancel
Save