Add az09comma to sanitize sortfield/sortorder
This commit is contained in:
parent
59d0e9a64f
commit
75a4891113
@ -542,6 +542,13 @@ function GETPOST($paramname, $check='none', $method=0, $filter=null, $options=nu
|
|||||||
if (preg_match('/[^a-z0-9_\-\.]+/i',$out)) $out='';
|
if (preg_match('/[^a-z0-9_\-\.]+/i',$out)) $out='';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'aZ09comma': // great to sanitize sortfield or sortorder params that can be t.abc,t.def_gh
|
||||||
|
if (! is_array($out))
|
||||||
|
{
|
||||||
|
$out=trim($out);
|
||||||
|
if (preg_match('/[^a-z0-9_\-\.,]+/i',$out)) $out='';
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'array':
|
case 'array':
|
||||||
if (! is_array($out) || empty($out)) $out=array();
|
if (! is_array($out) || empty($out)) $out=array();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user