CodeIgniter Forums
xss_clean and base64 - 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: xss_clean and base64 (/showthread.php?tid=59255)



xss_clean and base64 - El Forum - 09-11-2013

[eluser]redcloud80[/eluser]
Hi! I'm running CI 2.1.4 and I don't understand why this test fails.
I tried with many different image types but the output is every time FALSE

Code:
$base64 = [removed]iVBORw0KGgoAAAAN...";

echo $this->security->xss_clean($base64, TRUE);



xss_clean and base64 - El Forum - 09-11-2013

[eluser]redcloud80[/eluser]
Cool, the forum too has stripped the base64 prefix lol!