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
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 [];
}