Yii Framework Forum: Yii mysql security? Modified crud secure against injection? - Yii Framework Forum

Jump to content

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

Yii mysql security? Modified crud secure against injection? Rate Topic: -----

#1 User is offline   dubayou 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 28-January 11

Posted 06 May 2011 - 10:46 PM

As like the code thats generated with the crud tool. How safe is $model->save(); against injection attacks?
0

#2 User is offline   bugmelody 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 78
  • Joined: 09-December 09

Posted 06 May 2011 - 10:50 PM

it is safe,$model->save use pdo::quote or pdo::bindparam to avoid injection
0

#3 User is offline   dubayou 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 28-January 11

Posted 07 May 2011 - 11:32 AM

View Postbugmelody, on 06 May 2011 - 10:50 PM, said:

it is safe,$model->save use pdo::quote or pdo::bindparam to avoid injection



@bugmelody thanks :)
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