Improved fallback when the probing fails

This commit is contained in:
Michael 2018-12-04 14:17:55 +00:00
parent 491fc5f78a
commit 5c20f21dd8
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}
/**