Welcome Guest, Not a member yet? Register   Sign In
Form Validation / prepping for insert
#5

[eluser]jdgiotta[/eluser]
Then maybe I'm doing something wrong.
Code:
//...
$rules['username']    = "required|prep_for_form";
//...

I enter this into my username input field of the form
Code:
"> [removed]alert("CAN BE XSSd")[removed] /*

Submit, validation fails (obviously), but the repopulation breaks the HTML. I was assuming based on the functions description, that it would escape the special HTML characters.


Messages In This Thread
Form Validation / prepping for insert - by El Forum - 06-25-2008, 10:58 AM
Form Validation / prepping for insert - by El Forum - 06-25-2008, 12:13 PM
Form Validation / prepping for insert - by El Forum - 08-26-2008, 02:01 PM
Form Validation / prepping for insert - by El Forum - 08-26-2008, 05:20 PM
Form Validation / prepping for insert - by El Forum - 08-27-2008, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB