Category: Validation

Cakephp 2 how to escape special characters to prevent SQL injection?

Hi, I'd like to know in Cakephp 2 how to escape special characters to prevent SQL injection?For example://input $this->request->data['Model']['name']; // name = 'John "Doe"'I want name fi

SOLVED #sql #injection
3 Answers
Harper
Harper

5

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.


Join Now Tour

Download Cakephp

Start baking your own CakePHP application!


Cakephp All Versions