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'];
|
return $data['baseurl'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$urlarr = explode('/profile/', $url);
|
// When we can't probe the server, we use some ugly function that does some pattern matching
|
||||||
$basepath = $urlarr[0];
|
return PortableContact::detectServer($url);
|
||||||
|
|
||||||
return $basepath;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue