]> git.mxchange.org Git - friendica-addons.git/blobdiff - privacy_image_cache/privacy_image_cache.php
fromgplus: Initial working version
[friendica-addons.git] / privacy_image_cache / privacy_image_cache.php
index 2dcaa199e38d5fb589192bdfbbb85939ba2bb394..4729900711d7aeed1ba161574d9bcdd2c4c722b7 100644 (file)
@@ -100,7 +100,7 @@ function privacy_image_cache_init() {
 
                $img_str = fetch_url($_REQUEST['url'],true);
 
-               $tempfile = tempnam("", "cache");
+               $tempfile = tempnam(get_config("system","temppath"), "cache");
                file_put_contents($tempfile, $img_str);
                $mime = image_type_to_mime_type(exif_imagetype($tempfile));
                unlink($tempfile);