This commit is contained in:
ston1th 2026-03-13 00:02:25 +01:00
commit cb611fbe3e

View file

@ -226,7 +226,7 @@ func (c *Context) Forwarded() (ret string) {
// CheckXsrf validates the xsrf token
func (c *Context) CheckXsrf() (ok bool) {
ok = checkXsrf(c.Form("token"), c.Token.RawSig()[:keySize])
ok = checkXsrf(c.Form("token"), c.Token.RawSig())
if !ok {
c.Error("wrong csrf token")
}