mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed: File upload (mib upload)i
> safe_output on field and php warning
This commit is contained in:
parent
8b99e9757a
commit
744c07237f
@ -92,7 +92,7 @@ if (!function_exists ('mime_content_type')) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$ext_fields = explode ('.', $filename);
|
$ext_fields = explode ('.', $filename);
|
||||||
$ext = array_pop ();
|
$ext = array_pop ($ext_fields);
|
||||||
$ext = strtolower ($ext);
|
$ext = strtolower ($ext);
|
||||||
if (array_key_exists ($ext, $mime_types)) {
|
if (array_key_exists ($ext, $mime_types)) {
|
||||||
return $mime_types[$ext];
|
return $mime_types[$ext];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user