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.
The controller is loaded by a ajax function
Thank you
Filemanager.php (Size: 16.56 KB / Downloads: 5)
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
Filemanager.php (Size: 16.56 KB / Downloads: 5)