提交 28d311e7 编写于 作者: U UlricQin

bugfix sql 注入

上级 d3553930
......@@ -271,7 +271,12 @@ func v1HostRegister(c *gin.Context) {
oldFields[k] = v
}
uniqValue := f.SN
uniqValue := ""
if f.UniqKey == "sn" {
uniqValue = f.SN
}
if f.UniqKey == "ip" {
uniqValue = f.IP
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册