Welcome Guest, Not a member yet? Register   Sign In
xss_clean on $this->uri->segment(2)
#1

[eluser]hugle[/eluser]
Hello Everyone,
I think it's done in very easy way... but I can't find it.

How do I xss_clean the $uri->segment values?

for example I have:
Code:
$username = $this->uri->segment(2);
$key = $this->uri->segment(3);

how these values can be xss_clean'ed ...?

thanks!
#2

[eluser]rogierb[/eluser]
check out the awesome user guide. http://ellislab.com/codeigniter/user-gui...elper.html

Just do an <code>$username = xss_clean($this->uri->segment(2))</code>
#3

[eluser]hugle[/eluser]
[quote author="rogierb" date="1255007931"]check out the awesome user guide. http://ellislab.com/codeigniter/user-gui...elper.html

Just do an <code>$username = xss_clean($this->uri->segment(2))</code>[/quote]

thank you so much!
I really appreciate this!

cheers
Jaroslav




Theme © iAndrew 2016 - Forum software by © MyBB