:art:解决template渲染时遇到转移字符问题

This commit is contained in:
coward
2024-03-08 10:43:22 +08:00
parent 4597a1d442
commit d41a6e9ba2
8 changed files with 769 additions and 8 deletions

View File

@@ -53,6 +53,5 @@ func (c CaptchaStore) Verify(id, answer string, clear bool) bool {
if os.Getenv("GIN_MODE") != "release" {
return true
}
storeAnswer := c.Get(id, clear)
return strings.ToUpper(answer) == strings.ToUpper(storeAnswer)
return strings.ToUpper(answer) == strings.ToUpper(c.Get(id, clear))
}