X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_profile.php;h=9a6729396f3b83d90f6d31c58a7889c411385e03;hb=f9f08b435589ea10dca2db6891ae885a66e831e4;hp=8ea86eb91ecc7719b4651238f831fdcd3213369b;hpb=9f81c3345b40d635a34f0448dd625b17f20508c3;p=friendica.git diff --git a/mod/update_profile.php b/mod/update_profile.php index 8ea86eb91e..9a6729396f 100644 --- a/mod/update_profile.php +++ b/mod/update_profile.php @@ -1,14 +1,29 @@ \r\n"; echo (($_GET['msie'] == 1) ? '
' : '
'); - echo str_replace("\t",' ',profile_content($a,true)); + + // Grab the page inner contents, but move any image src attributes to another attribute name. + // Some browsers will prefetch all the images for the page even if we don't need them. + // The only ones we need to fetch are those for new page additions, which we'll discover + // on the client side and then swap the image back. + + $text = profile_content($a,$profile_uid); + $pattern = "/]*) src=\"([^\"]*)\"/"; + $replace = "' : '
'); echo "\r\n"; killme();