Sanitizing Form inputs form quotes (' and ") |
(12-30-2014, 05:05 AM)sujit510 Wrote: Finally, I went to "system\helpers\form_helper.php" and changed the function form_input Hi Sujit, aside from MWhitney's good advice, there's a much better way of doing what you did. If you change something in the system folder, the problem is this -- next time you upgrade, you will have to make those changes again. And what if you forget? Instead of changing a class, function, or helper in the system folder, you can "extend" them by creating their replacements in your application folder. That way, upgrading CodeIgniter won't break your application. The Codeigniter Documentation shows how to do that. Click the link and scroll down to "Extending" Helpers. It's very easy to do. Good luck! |
Messages In This Thread |
Sanitizing Form inputs form quotes (' and ") - by sujit510 - 12-30-2014, 05:05 AM
RE: Sanitizing Form inputs form quotes (' and ") - by mwhitney - 12-30-2014, 02:46 PM
RE: Sanitizing Form inputs form quotes (' and ") - by RobertSF - 12-30-2014, 03:23 PM
RE: Sanitizing Form inputs form quotes (' and ") - by mwhitney - 12-30-2014, 04:27 PM
RE: Sanitizing Form inputs form quotes (' and ") - by RobertSF - 12-30-2014, 06:37 PM
RE: Sanitizing Form inputs form quotes (' and ") - by sujit510 - 12-30-2014, 10:41 PM
RE: Sanitizing Form inputs form quotes (' and ") - by RobertSF - 01-03-2015, 05:28 PM
RE: Sanitizing Form inputs form quotes (' and ") - by mwhitney - 01-05-2015, 01:14 PM
RE: Sanitizing Form inputs form quotes (' and ") - by mwhitney - 01-02-2015, 01:17 PM
|