1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Code cleanup

This commit is contained in:
Cameron
2016-12-01 15:38:40 -08:00
parent 3877c7b6b0
commit 126f89da9f
8 changed files with 21 additions and 466 deletions

View File

@@ -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
{