Fix GETPOST for intcomma

This commit is contained in:
Laurent Destailleur 2017-12-18 11:32:24 +01:00
parent 6f9822ddb3
commit 54db0d31b4

View File

@ -516,7 +516,7 @@ function GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NU
if (! is_numeric($out)) { $out=''; }
break;
case 'intcomma':
if (preg_match('/[^0-9,]+/i',$out)) $out='';
if (preg_match('/[^0-9,-]+/i',$out)) $out='';
break;
case 'alpha':
if (! is_array($out))