From ef0e6956b358a825f8fa3071ac7599ac322e562e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 9 Apr 2012 22:52:13 +0200 Subject: [PATCH] Fix: add special test --- htdocs/core/lib/functions.lib.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index b5832858353..c6647017a6a 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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') {