改进聚合查询方法的正则判断

This commit is contained in:
thinkphp
2018-12-05 12:07:07 +08:00
parent 85c06ae827
commit ebb220f1cb

View File

@@ -569,7 +569,7 @@ class Query
list($distinct, $field) = explode(' ', $field);
}
if (!preg_match('/^[\w\.\*]+$/', $field)) {
if (!preg_match('/^[\w\.\+\-\*]+$/', $field)) {
throw new Exception('not support data:' . $field);
}