beecc507 by astaxie

fix #209

1 parent 797bd982
...@@ -335,9 +335,7 @@ func (c *Controller) CheckXsrfCookie() bool { ...@@ -335,9 +335,7 @@ func (c *Controller) CheckXsrfCookie() bool {
335 } 335 }
336 if token == "" { 336 if token == "" {
337 c.Ctx.Abort(403, "'_xsrf' argument missing from POST") 337 c.Ctx.Abort(403, "'_xsrf' argument missing from POST")
338 } 338 } else if c._xsrf_token != token {
339
340 if c._xsrf_token != token {
341 c.Ctx.Abort(403, "XSRF cookie does not match POST argument") 339 c.Ctx.Abort(403, "XSRF cookie does not match POST argument")
342 } 340 }
343 return true 341 return true
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!