Merge pull request #12360 from MrPetovan/bug/deprecated

Address several Deprecated messages
This commit is contained in:
Michael Vogel 2022-12-10 18:08:17 +01:00 committed by GitHub
commit 2722ef82cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 30 additions and 25 deletions

View file

@ -687,7 +687,7 @@ class Probe
}
$parts = parse_url($uri);
if (empty($parts['scheme']) && empty($parts['host']) && !strstr($parts['path'], '@')) {
if (empty($parts['scheme']) && empty($parts['host']) && (empty($parts['path']) || strpos($parts['path'], '@') === false)) {
Logger::info('URI was not detectable', ['uri' => $uri]);
return [];
}