mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
parse_url returns null in case a parameter is not found
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
98365780ca
commit
cf0bdfd8c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue