mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed wrong regular expression
This commit is contained in:
parent
1de5c35348
commit
86e0942150
@ -151,7 +151,7 @@
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user