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/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: When using codeigniter do I need to clean the URL from XSS? (/showthread.php?tid=43420)



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));