mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进聚合查询方法的正则判断
This commit is contained in:
@@ -569,7 +569,7 @@ class Query
|
|||||||
list($distinct, $field) = explode(' ', $field);
|
list($distinct, $field) = explode(' ', $field);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preg_match('/^[\w\.\*]+$/', $field)) {
|
if (!preg_match('/^[\w\.\+\-\*]+$/', $field)) {
|
||||||
throw new Exception('not support data:' . $field);
|
throw new Exception('not support data:' . $field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user