]> git.mxchange.org Git - friendica-addons.git/blobdiff - privacy_image_cache/privacy_image_cache.php
The tempory path is now fetched from a new function (that ensures that the value...
[friendica-addons.git] / privacy_image_cache / privacy_image_cache.php
index a0cd81073a6013ae392ae47d1278919f0b8def91..0a6d8be1de3002614f0d5eef44a6080deb8bb68e 100644 (file)
@@ -156,7 +156,7 @@ function privacy_image_cache_init() {
                $redirects = 0;
                $img_str = fetch_url($_REQUEST['url'],true, $redirects, 10);
 
-               $tempfile = tempnam(get_config("system","temppath"), "cache");
+               $tempfile = tempnam(get_temppath(), "cache");
                file_put_contents($tempfile, $img_str);
                $mime = image_type_to_mime_type(exif_imagetype($tempfile));
                unlink($tempfile);