This commit is contained in:
ston1th 2026-03-13 00:02:08 +01:00
commit 4fe6ea043f

View file

@ -247,7 +247,7 @@ func (c *Context) File(name string) (io.Reader, string, error) {
// CheckXsrf validates the xsrf token // CheckXsrf validates the xsrf token
func (c *Context) CheckXsrf() (ok bool) { 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 { if !ok {
c.Error("wrong csrf token") c.Error("wrong csrf token")
} }