mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 17:30:53 +00:00
Fix 4298
Condition的clone方法,params存在共享内存,导致isCond死循环。
This commit is contained in:
parent
c5c03815f3
commit
8f3fd317da
@ -152,5 +152,8 @@ func (c *Condition) IsEmpty() bool {
|
||||
|
||||
// clone clone a condition
|
||||
func (c Condition) clone() *Condition {
|
||||
params := make([]condValue, len(c.params))
|
||||
copy(params, c.params)
|
||||
c.params = params
|
||||
return &c
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user