Fixed: File upload (mib upload)i

> safe_output on field and php warning
This commit is contained in:
fbsanchez 2016-07-04 10:48:18 +02:00
parent 5b8a345f9e
commit 8b99e9757a
1 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,9 @@ if (!function_exists ('mime_content_type')) {
'ods' => 'application/vnd.oasis.opendocument.spreadsheet'
);
$ext = strtolower (array_pop (explode ('.', $filename)));
$ext_fields = explode ('.', $filename);
$ext = array_pop ();
$ext = strtolower ($ext);
if (array_key_exists ($ext, $mime_types)) {
return $mime_types[$ext];
}
@ -114,7 +116,7 @@ if (!function_exists ('mime_content_type')) {
global $config;
if (isset($config['homedir_filemanager'])) {
$homedir_filemanager = $config['homedir_filemanager'];
$homedir_filemanager = io_safe_output($config['homedir_filemanager']);
}
else {
$homedir_filemanager = $config['homedir'];