Revert "Fix: sql injection"

This reverts commit 8c3158cf28.
This commit is contained in:
Laurent Destailleur
2012-04-10 01:03:54 +02:00
parent 212b3bd60e
commit 4cb6ec76ee
2 changed files with 1 additions and 7 deletions

View File

@@ -194,12 +194,6 @@ function GETPOST($paramname,$check='',$method=0)
// '../' is dangerous because it allows dir transversals
if (preg_match('/"/',$out)) $out='';
else if (preg_match('/\.\.\//',$out)) $out='';
else if (preg_match('/(\s)*|(%20)*/',$out)) $out='';
}
elseif ($check == 'special')
{
$out=trim($out);
if (preg_match('/(\s)*|(%20)*/',$out)) $out='';
}
elseif ($check == 'array')
{