forked from extern/egroupware
as talked with lars ;-)
This commit is contained in:
parent
ba4ed68752
commit
fe8be115fb
@ -135,7 +135,7 @@
|
|||||||
$sort = "DESC";
|
$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";
|
$orderclause = "ORDER BY $order $sort";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user