Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14290

Xss_clean Question

$
0
0
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

.php   Filemanager.php (Size: 16.56 KB / Downloads: 5)

Viewing all articles
Browse latest Browse all 14290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>