CodeIgniter Forums
When using codeigniter do I need to clean the URL from XSS? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: When using codeigniter do I need to clean the URL from XSS? (/thread-43420.html)



When using codeigniter do I need to clean the URL from XSS? - El Forum - 07-11-2011

[eluser]gunnarflax[/eluser]
The title says it all. Do I need to clean the info I get from:

Code:
$this->uri->segment(3);



When using codeigniter do I need to clean the URL from XSS? - El Forum - 07-11-2011

[eluser]C. Jiménez[/eluser]
http://ellislab.com/codeigniter/user-guide/libraries/security.html

$this->security->xss_clean()

example:
$data = $this->security->xss_clean($this->uri->segment(3));