fix: 修复检测逻辑
This commit is contained in:
parent
3020d8335b
commit
56eccd36ae
@ -560,7 +560,7 @@ func isSafeSQL(sql string) bool {
|
||||
}
|
||||
|
||||
// 检查SQL结构是否为简单的SELECT语句
|
||||
if !strings.HasPrefix(upperSQL, "SELECT") {
|
||||
if strings.HasPrefix(upperSQL, "SELECT") {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user