]> git.mxchange.org Git - friendica.git/commitdiff
should fix #728
authorFabrixxm <fabrix.xm@gmail.com>
Mon, 8 Jul 2013 08:52:14 +0000 (04:52 -0400)
committerFabrixxm <fabrix.xm@gmail.com>
Mon, 8 Jul 2013 08:52:14 +0000 (04:52 -0400)
include/diaspora.php

index 5bf45e241fe1013b230f041bbd7b498918f05eac..89b7e26cfda0e942dea2b49b032bd6d8bdb0d486 100755 (executable)
@@ -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;
        }