Welcome Guest, Not a member yet? Register   Sign In
xss_clean doing funny things...
#1

[eluser]Phil Norton[/eluser]
Hi there

In a simple controller to add a new item, the validation rules for the title are...
Code:
$rules['title'] = "required|xss_clean";

Which has always worked fine. That was, until we tried to add the following headline: "P&O Cruises". The xss_clean filter didn't seem to like that, and changed it to "P&O;Cruises" (ie it added a semi-colon after the O and removed the space between the two). Is this a bug in the xss_clean script (still running 1.6.3 as there were a few problems in 1.7 that messed things up)? Or is it doing it's job properly and this is just "one of those things"?

Any help greatly appreciated!

Phil




Theme © iAndrew 2016 - Forum software by © MyBB