get and post filtering for xss, sql injection |
I'm new to codeigniter can you give me some tips on get and post filtering for xss, sql injection and etc..
xaa is built into CodeIgniter both versions you just need to turn it on see the Users Guide.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Well, if you need to add sth, you can use some classical php functions such as strip_tags and preg_replace :
PHP Code: $name_from_input = strip_tags($this->request->getVar('user_name'));
@Secux,
Here is helpful documentation for queries https://codeigniter.com/user_guide/datab...ng-queries
I read somewhere that if I use the query module it also protects against injections. is this true?
|
Welcome Guest, Not a member yet? Register Sign In |