Fix GETPOST for intcomma
This commit is contained in:
parent
6f9822ddb3
commit
54db0d31b4
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user