mirror of https://gitee.com/karson/fastadmin.git
修复SelectPage排序安全问题
parent
31088b0758
commit
54c8a8953d
|
|
@ -561,7 +561,7 @@ class Backend extends Controller
|
|||
$primaryvalue = array_unique(is_array($primaryvalue) ? $primaryvalue : explode(',', $primaryvalue));
|
||||
//修复自定义data-primary-key为字符串内容时,给排序字段添加上引号
|
||||
$primaryvalue = array_map(function ($value) {
|
||||
return '\'' . $value . '\'';
|
||||
return \think\Db::quote($value);
|
||||
}, $primaryvalue);
|
||||
|
||||
$primaryvalue = implode(',', $primaryvalue);
|
||||
|
|
|
|||
Loading…
Reference in New Issue