forked from extern/egroupware
fixed wrong regular expression
This commit is contained in:
parent
1de5c35348
commit
86e0942150
@ -151,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
if ($add_order_by)
|
if ($add_order_by)
|
||||||
{
|
{
|
||||||
$querymethod .= ' ORDER BY '.(preg_match('/[a-zA-Z0-9_,]+/',$order) ? $order : 'hol_month_num,hol_mday');
|
$querymethod .= ' ORDER BY '.(preg_match('/^[a-zA-Z0-9_,]+$/',$order) ? $order : 'hol_month_num,hol_mday');
|
||||||
}
|
}
|
||||||
return $querymethod;
|
return $querymethod;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user