]> git.mxchange.org Git - friendica-addons.git/blobdiff - privacy_image_cache/privacy_image_cache.php
The title for the settings now contain the words "import, "export" or "Mirror" accord...
[friendica-addons.git] / privacy_image_cache / privacy_image_cache.php
index 1fa6c5e6557762045b5cb262bdd57822ea83d8dc..b7c8fc7a97bf127efd91958332ada54df6269bd2 100644 (file)
@@ -288,11 +288,11 @@ function privacy_image_cache_img_cb($matches) {
 
        // if the picture seems to be from another picture cache then take the original source
        $queryvar = privacy_image_cache_parse_query($matches[2]);
-       if ($queryvar['url'] != "")
+       if (($queryvar['url'] != "") AND (substr($queryvar['url'], 0, 4) == "http"))
                $matches[2] = urldecode($queryvar['url']);
 
        // if fetching facebook pictures don't fetch the thumbnail but the big one
-       if (strpos($matches[2], ".fbcdn.net/") and (substr($matches[2], -6) == "_s.jpg"))
+       if (((strpos($matches[2], ".fbcdn.net/") OR strpos($matches[2], "/fbcdn-photos-"))) and (substr($matches[2], -6) == "_s.jpg"))
                $matches[2] = substr($matches[2], 0, -6)."_n.jpg";
 
        // following line changed per bug #431