Skip to content

Commit

Permalink
Dev: oups lost a _
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Feb 5, 2014
1 parent ae147a6 commit 59d417c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/UploaderController.php
Expand Up @@ -47,7 +47,7 @@ function run($actionID)
// Validate and filter and throw error if problems
// Using 'futmp_'.randomChars(15).'_'.$pathinfo['extension'] for filename, then remove all other characters
$sFileGetContentFiltered=preg_replace('/[^a-z0-9_]/', '', $sFileGetContent);
$sFileNameFiltered = preg_replace('/[^a-z0-9]/', '',$sFileName);
$sFileNameFiltered = preg_replace('/[^a-z0-9_]/', '',$sFileName);
$sFieldNameFiltered=preg_replace('/[^X0-9]/', '', $sFieldName);
if($sFileGetContent!=$sFileGetContentFiltered || $sFileName!=$sFileNameFiltered || $sFieldName!=$sFieldNameFiltered)
{// If one seems to be a hack: Bad request
Expand Down

0 comments on commit 59d417c

Please sign in to comment.