3 ms·
> Stripping "bad stuff" as you put it should be mandatory regardless. Someone can simply craft a raw post to the "action" URL of the form (the handler) without
by riffraff 12y ago
> Stripping "bad stuff" as you put it should be mandatory regardless. Someone can simply craft a raw post to the "action" URL of the form (the handler) without loading the page at all.
The second sentence is irrelevant, I am not assuming javascript checks, I already know user input is untrusted.
But the first is, AFAICT, wrong: If I escape correctly all user input before using it, I don't need to strip anything (unless I want to let some HTML through).
If you think escaping input is not enough, could you give me an example?