The tempory path is now fetched from a new function (that ensures that the value is set correctly)
This commit is contained in:
@@ -820,7 +820,7 @@ class CodebirdSN
|
||||
}
|
||||
|
||||
// To-Do
|
||||
$tempfile = tempnam(get_config("system","temppath"), "mimecheck");
|
||||
$tempfile = tempnam(get_temppath(), "mimecheck");
|
||||
file_put_contents($tempfile, $data);
|
||||
$mime = image_type_to_mime_type(exif_imagetype($tempfile));
|
||||
unlink($tempfile);
|
||||
|
||||
Reference in New Issue
Block a user