skip to Main Content

Do i need to avoid sql injection in this example magento code?

Following source codes need to avoid sql-injection? if $some_text of example is sql-injected attack, following source codes are dangerous? General Magento code $tmp_sale_info_collection = Mage::getModel('some/module') ->getCollection() ->addFieldToFilter('seller_id', array('eq' => $some_text)); Use getSelect() inner join $orderItem = Mage::getModel('sales/order_item')->getCollection(); $orderItem->getSelect() ->joinInner( array(…

VIEW QUESTION
Back To Top
Search