Yii Framework Forum: CSRF validation not working? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

CSRF validation not working? Rate Topic: -----

#1 User is offline   Kaerigan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 05-December 08
  • Location:Sweden

Posted 11 December 2008 - 05:42 PM

Ok, I'm not sure whether this is a bug or not, but it sure looks like one. I thought I'd stop by here to see if it was one. When I enable CSRF via the request component's attribute "enableCsrfValidation" I get a fatal error:

Call to undefined method CHttpRequest::getCsrfTokenFromCookie()

Now, who's to blame here? Did I mess something up? If I did, I have no freakin' clue what I did wrong.
0

#2 User is offline   wei 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 147
  • Joined: 04-October 08

Posted 11 December 2008 - 06:21 PM

See http://code.google.c...es/detail?id=41 and http://code.google.c...ce/detail?r=327
0

#3 User is offline   Kaerigan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 05-December 08
  • Location:Sweden

Posted 12 December 2008 - 08:00 AM

Ah crap. Sorry.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users