mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user