mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 17:08:48 +00:00
The tempory path is now fetched from a new function (that ensures that the value is set correctly)
This commit is contained in:
parent
8220fca1e1
commit
ca0fcebc15
5 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue