Welcome Guest, Not a member yet? Register   Sign In
Question about CI XSS filter and HTMLPurifier
#2

You clearly don't properly understand XSS and SQL injections. They are separate things. What you are doing now is applying xss filter for both input and output, so you are escaping data twice - you are going to have a bad time if you do this. Instead, you should use xss filter on output and on input use CI's query builder and/or prepared statements.
Quote:because I can not use CI input validation with a WYSIWYG editor (Am I right?) so I use HTMLPurifier instead.
I don't see a reason why you can't use normal validation. WYSIWYG editor sends data as a normal form data.
Reply


Messages In This Thread
RE: Question about CI XSS filter and HTMLPurifier - by gadelat - 06-01-2015, 03:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB