From: Fabrixxm Date: Mon, 8 Jul 2013 08:52:14 +0000 (-0400) Subject: should fix #728 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd35beb94714ab6aa8769059f273ec58cff83bf7;p=friendica.git should fix #728 --- diff --git a/include/diaspora.php b/include/diaspora.php index 5bf45e241f..89b7e26cfd 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -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?://|", $url1) === 0) { $image_url = "http://" . $handle_parts[1] . $image_url; }