allow ',' in order

This commit is contained in:
Ralf Becker 2006-03-09 22:33:06 +00:00
parent 81a8e89f69
commit e419a6aa6d

View File

@ -1213,7 +1213,7 @@
foreach(array('_GET','_POST','_REQUEST','HTTP_GET_VARS','HTTP_POST_VARS') as $n => $where)
{
$pregs = array(
'order' => '/^[a-zA-Z0-9_]*$/',
'order' => '/^[a-zA-Z0-9_,]*$/',
'sort' => '/^(ASC|DESC|asc|desc|0|1|2|3|4|5|6|7){0,1}$/',
);
foreach(array('order','sort') as $name)