mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Code cleanup
This commit is contained in:
@@ -195,6 +195,8 @@ function process_uploaded_files($uploaddir, $fileinfo = FALSE, $options = NULL)
|
||||
|
||||
foreach ($files['name'] as $key=>$name)
|
||||
{
|
||||
$name = filter_var($name, FILTER_SANITIZE_STRING);
|
||||
|
||||
$first_error = FALSE; // Clear error flag
|
||||
if (($name != '') || $files['size'][$key]) // Need this check for things like file manager which allow multiple possible uploads
|
||||
{
|
||||
|
Reference in New Issue
Block a user