1
1
Fork 0

Merge pull request #732 from fabrixxm/bug728

Fix diaspora contacts profile image
This commit is contained in:
fabrixxm 2013-07-09 01:50:07 -07:00
commit 0227372daa

View file

@ -2117,7 +2117,9 @@ function diaspora_profile($importer,$xml,$msg) {
if($name === '') {
$name = $handle_parts[0];
}
if(strpos($image_url, $handle_parts[1]) === false) {
if( preg_match("|^https?://|", $image_url) === 0) {
$image_url = "http://" . $handle_parts[1] . $image_url;
}