From cd35beb94714ab6aa8769059f273ec58cff83bf7 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Mon, 8 Jul 2013 04:52:14 -0400 Subject: [PATCH 1/2] should fix #728 --- include/diaspora.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } From c9604b776c362a8c4d98b430eeec3d7c266a04ef Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Mon, 8 Jul 2013 14:21:49 +0200 Subject: [PATCH 2/2] stupid typo --- include/diaspora.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/diaspora.php b/include/diaspora.php index 89b7e26cfd..4f1eb22234 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2119,7 +2119,7 @@ function diaspora_profile($importer,$xml,$msg) { } - if( preg_match("|^https?://|", $url1) === 0) { + if( preg_match("|^https?://|", $image_url) === 0) { $image_url = "http://" . $handle_parts[1] . $image_url; }