CodeIgniter Forums

Full Version: Xss_clean Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I would like to know if I have use the security class xss_clean correct. Ans is there any where else I should put it on controller? I have attached file.

PHP Code:
if (null !==($this->input->get('directory'))) {
 
  $directory $this->security->xss_clean(DIR_IMAGE .'catalog/'$this->input->get('directory'TRUE));
} else {
 
  $directory $this->security->xss_clean(DIR_IMAGE .'catalog');


The controller is loaded by a ajax function

Thank you