Welcome Guest, Not a member yet? Register   Sign In
i dont understand about $this->security->xss_clean() and $this->security->sanitize_filename() ?
#1

[eluser]Mario "St.Peter" Valentino[/eluser]
hello all,

i dont understand about $this->security->xss_clean() and $this->security->sanitize_filename()?
can any body give explanation and give a sample code

Thanks
#2

[eluser]Abdul Malik Ikhsan[/eluser]
xss_clean() is to clean tag script which maybe harmfull for your site by user input ( register, save data, etc ), ex :
Code:
&lt;script type="text/javascript"&gt; for (var i=1;i<=1000;i++) alert('heii..');&lt;/script&gt;
become
Code:
[removed] for (var i=1;i<=1000;i++) alert('heii..'); [/removed]




Theme © iAndrew 2016 - Forum software by © MyBB