Pre Exam Test Practice
Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
codeigniter best practice to sanitize input
codeigniter best practice to sanitize input ¬†using -'php,codeigniter,validation,sanitize'
I would like to know what's the best practice to sanitize user input using Codeigniter.
I understands that CI offers form_validation, such as set_rules.
¬†¬†"Any native PHP function that accepts one parameter can be used as a
¬†¬†rule, like htmlspecialchars, trim, MD5, etc."
My question now is,
is this enough to protect us from xss, sql injection attacks etc?
what other rules are there that I can apply?
in term of performance, is it costly for us to apply all these rules for all the inputs?
I understand MD5 is a hash funciton, but what happens if you set MD5 as part of the rule?
Sep 15, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening