mirror of
https://github.com/friendica/friendica
synced 2024-11-19 09:03:42 +00:00
Accept URLs with no trailing slash in Probe::uri
This commit is contained in:
parent
aaae7b56df
commit
10a8be7943
1 changed files with 2 additions and 2 deletions
|
@ -575,7 +575,7 @@ class Probe
|
|||
{
|
||||
$parts = parse_url($uri);
|
||||
|
||||
if (!empty($parts["scheme"]) && !empty($parts["host"]) && !empty($parts["path"])) {
|
||||
if (!empty($parts["scheme"]) && !empty($parts["host"])) {
|
||||
$host = $parts["host"];
|
||||
if (!empty($parts["port"])) {
|
||||
$host .= ':'.$parts["port"];
|
||||
|
@ -590,7 +590,7 @@ class Probe
|
|||
return [];
|
||||
}
|
||||
|
||||
$path_parts = explode("/", trim($parts["path"], "/"));
|
||||
$path_parts = explode("/", trim(defaults($parts, 'path', ''), "/"));
|
||||
|
||||
while (!$lrdd && (sizeof($path_parts) > 1)) {
|
||||
$host .= "/".array_shift($path_parts);
|
||||
|
|
Loading…
Reference in a new issue