Regular PHP functions on $data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Regular PHP functions on $data (/showthread.php?tid=28884) |
Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]Ngulo[/eluser] hi i was wondering if can do this Code: $email=htmlentities($this->input->post('email')); is it right ? or is it deprecated? Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]danmontgomery[/eluser] Have you tried it? Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]Ngulo[/eluser] yes it works but i was wondering if it is deprecated? on post() function is not set any type of filtering by default? Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]danmontgomery[/eluser] If you have xss_filtering enabled globally, or if you are using xss_filter in form_validation... Otherwise, you should be fine. Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]Ngulo[/eluser] ok thanks again can you tell tell me ,if you know, the xss_clean() function returns $_POST data as htmlentities and $_GET data as urlencode ,decode? which are the main PHP filters when xss_clean function is enabled? sorry is for understand ,i'm new on CI Regular PHP functions on $data - El Forum - 03-24-2010 [eluser]InsiteFX[/eluser] There is a second parameter to input->post('email', TRUE); Will use xss_clean filtering... Enjoy InsiteFX Regular PHP functions on $data - El Forum - 03-25-2010 [eluser]Ngulo[/eluser] ok thanks |