Improved fallback when the probing fails
This commit is contained in:
parent
491fc5f78a
commit
5c20f21dd8
|
@ -112,10 +112,8 @@ class Contact extends BaseObject
|
|||
return $data['baseurl'];
|
||||
}
|
||||
|
||||
$urlarr = explode('/profile/', $url);
|
||||
$basepath = $urlarr[0];
|
||||
|
||||
return $basepath;
|
||||
// When we can't probe the server, we use some ugly function that does some pattern matching
|
||||
return PortableContact::detectServer($url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue