strip image tags issue - 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: strip image tags issue (/showthread.php?tid=10392) |
strip image tags issue - El Forum - 07-29-2008 [eluser]rfer[/eluser] Hey everyone! I'm having this weird problem. I'm using xss_clean on my forms, but somehow image tags are not being filtered...I took a look at the Validation and Input classes and they seem to be doing that (or attempting at least)... Is this a bug? Or am I doing something wrong? strip image tags issue - El Forum - 07-30-2008 [eluser]Pascal Kriete[/eluser] It doesn't strip image tags, it looks for malicious code inside the tag. If you don't want users posting images, you will need to strip the tags manually. strip image tags issue - El Forum - 07-30-2008 [eluser]rfer[/eluser] Ah, thanks! Still, in the user guide there's a prepping function called strip_image_tags which should do what I want, but doesn't seem to exist? strip image tags issue - El Forum - 07-30-2008 [eluser]Pascal Kriete[/eluser] My installation definitely has that. It's in the security helper (system/helpers/security_helper.php) starting on line 90. |