mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进聚合查询的安全性
This commit is contained in:
@@ -98,6 +98,10 @@ abstract class Builder
|
||||
|
||||
$result = [];
|
||||
foreach ($data as $key => $val) {
|
||||
if ('*' != $options['field'] && !in_array($key, $fields, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$item = $this->parseKey($key, $options, true);
|
||||
if ($val instanceof Expression) {
|
||||
$result[$item] = $val->getValue();
|
||||
|
||||
Reference in New Issue
Block a user