CodeIgniter Forums
What about security in CI? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: What about security in CI? (/showthread.php?tid=23181)



What about security in CI? - El Forum - 10-02-2009

[eluser]borgir[/eluser]
Hey there!
Is there any function similar to mysql_real_escape_string in CI?
Will I have to worry about this when using CI forms and DB insert functions?
Thks!


What about security in CI? - El Forum - 10-02-2009

[eluser]BrianDHall[/eluser]
CI's built-in SQL helper/class and ActiveRecord all automatically handle escaping special characters for you, you don't have to worry about doing it manually. It's a really nice time-saver, one less thing to worry about.

You should still do basic data sanitizing using form validation and common sense, but you don't have to worry about escaping special chars.


What about security in CI? - El Forum - 10-02-2009

[eluser]borgir[/eluser]
Thks for the information, Brian!
Take care =)


What about security in CI? - El Forum - 10-03-2009

[eluser]InsiteFX[/eluser]
You can also find this helpful for security.

CodeIgniter Security Help

Enjopy
InsiteFX


What about security in CI? - El Forum - 10-03-2009

[eluser]borgir[/eluser]
Thks a lot, InsiteFX!
Cheers!