Yii Framework Forum: Yii crashes with array-like cookie - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii crashes with array-like cookie Rate Topic: -----

#1 User is offline   bond 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 20-July 10

Posted 20 July 2010 - 10:07 AM

Yii framework 1.1.3. If a user has some cookie in their browser with an array-like name "foo[bar]", then the –°SecurityManager generates PHP error. I should mention, that I have HMAC cookie protection enabled, and, as far as I can see, this is the cause of the problem. In my opinion, it is unacceptable that the framework crushes when a user posts such kind of data. The framework should either catch this error, or ignore it, but it definitely should not result in a PHP error. Let's not discuss for now how a user could receive array-like cookies.

Error text: http://paste.ubuntu.com/466511/
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 21 July 2010 - 01:58 AM

Could you post the PHP error?

EDIT: Nevermind, you already have :)

This post has been edited by Mike: 21 July 2010 - 01:58 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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