mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
allow numbers in table- and column-names
This commit is contained in:
parent
77f01697e1
commit
45dc7e8258
@ -1099,7 +1099,7 @@ class Base
|
|||||||
{
|
{
|
||||||
$order_by = $fragment;
|
$order_by = $fragment;
|
||||||
}
|
}
|
||||||
if (!preg_match_all("/(#?[a-zA-Z_.]+) *(<> *''|IS NULL|IS NOT NULL|& *\d+)? *(ASC|DESC)?(, *|$)/ui", $order_by, $all_matches) ||
|
if (!preg_match_all("/(#?[a-z_][a-z0-9_.]+) *(<> *''|IS NULL|IS NOT NULL|& *\d+)? *(ASC|DESC)?(, *|$)/ui", $order_by, $all_matches) ||
|
||||||
$order_by !== implode('', $all_matches[0]))
|
$order_by !== implode('', $all_matches[0]))
|
||||||
{
|
{
|
||||||
error_log(__METHOD__."(".json_encode($fragment).") REMOVED");
|
error_log(__METHOD__."(".json_encode($fragment).") REMOVED");
|
||||||
|
Loading…
Reference in New Issue
Block a user