Input sanitization for database interaction in zend framework -
In such commands in the Zend Framework
Should anyone keep in mind what is in the variable or will the ZF pay attention to the SFG injection? Assuming this is the standard and not $ mapperObject-> FetchAll ($ where, $ order, $ count, offset offset);
Zend_Db_Table-> FetchAll is using , you are actually secured with SQL injection unless you have your parameters like:
$ where = $ select- & gt; Where ('id =?', $ Id) use safe methods to make; // or .. $ where = $ select- & gt; Where ('id =: id');
$ where = $ select- & gt; Where ('id = $ id');
Comments
Post a Comment