mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Remove unneeded feature
This commit is contained in:
@@ -632,14 +632,10 @@ function vet_file($filename, $target_name, $allowed_filetypes = '', $unknown = F
|
|||||||
$a_filetypes = trim(file_get_contents(e_ADMIN.$def_file));
|
$a_filetypes = trim(file_get_contents(e_ADMIN.$def_file));
|
||||||
$a_filetypes = explode(',', $a_filetypes);
|
$a_filetypes = explode(',', $a_filetypes);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{ // Its an 'override' array
|
|
||||||
$a_filetypes = explode(',', $def_file);
|
|
||||||
}
|
|
||||||
foreach ($a_filetypes as $ftype)
|
foreach ($a_filetypes as $ftype)
|
||||||
{
|
{
|
||||||
$ftype = strtolower(trim(str_replace('.', '', $ftype)));
|
$ftype = strtolower(trim(str_replace('.', '', $ftype)));
|
||||||
if (!$file_mask || in_array($ftype, $file_array))
|
if ($ftype && (!$file_mask || in_array($ftype, $file_array)))
|
||||||
{
|
{
|
||||||
$ret[$ftype] = -1;
|
$ret[$ftype] = -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user