]> git.mxchange.org Git - friendica-addons.git/blobdiff - privacy_image_cache/privacy_image_cache.php
facebook: Changing the order which kind of text is taken when there is no message
[friendica-addons.git] / privacy_image_cache / privacy_image_cache.php
index cd8a65f8b6c739c4d2b85453a8225d7915f98ee0..b757c7834749ef5dbdb888bda58b8481ea9f97c1 100644 (file)
@@ -51,6 +51,9 @@ function privacy_image_cache_init() {
        } else {
                require_once("Photo.php");
 
+               // It shouldn't happen but it does - spaces in URL
+               $_REQUEST['url'] = str_replace(" ", "+", $_REQUEST['url']);
+
                $img_str = fetch_url($_REQUEST['url'],true);
 
                $tempfile = tempnam("", "cache");