Welcome Guest, Not a member yet? Register   Sign In
Regular PHP functions on $data
#1

[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?
#2

[eluser]danmontgomery[/eluser]
Have you tried it?
#3

[eluser]Ngulo[/eluser]
yes it works Wink but i was wondering if it is deprecated? Smile
on post() function is not set any type of filtering by default?
#4

[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.
#5

[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 Sad
#6

[eluser]InsiteFX[/eluser]
There is a second parameter to input->post('email', TRUE);

Will use xss_clean filtering...

Enjoy
InsiteFX
#7

[eluser]Ngulo[/eluser]
ok thanks Wink




Theme © iAndrew 2016 - Forum software by © MyBB