The tempory path is now fetched from a new function (that ensures that the value is set correctly)

This commit is contained in:
Michael Vogel 2014-06-23 22:35:00 +02:00
parent 8220fca1e1
commit ca0fcebc15
5 changed files with 7 additions and 7 deletions

View 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);