mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
as talked with lars ;-)
This commit is contained in:
parent
ba4ed68752
commit
fe8be115fb
@ -135,7 +135,7 @@
|
||||
$sort = "DESC";
|
||||
}
|
||||
|
||||
if ($order)
|
||||
if (!empty($order) && preg_match('/^[a-zA-Z_0-9, ]+$/',$order) && (empty($sort) || preg_match('/^(DESC|ASC|desc|asc)$/',$sort)))
|
||||
{
|
||||
$orderclause = "ORDER BY $order $sort";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user