2
0
forked from Wavyzz/dolibarr

Fix: add special test

This commit is contained in:
Regis Houssin
2012-04-09 22:52:13 +02:00
parent 64d60d1270
commit ae8b16b9fc

View File

@@ -194,7 +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')
{