Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
kses
Toivo
New
What could i say. Nice one.
But is it actually needed for vanilla? "kses can be used to avoid Cross-Site Scripting (XSS), Buffer Overflows and Denial of Service attacks." But some extra locks on your door are good I guess
0
This discussion has been closed.
Comments
Never trust user input. Any place where you allow users to enter (X)HTML (as opposed to stripping or escaping it completely), you must handle it, or sit back and wait for your site to enable these jerks to screw around with your site and server. How you handle it is up to you.
I believe that the HTML formatter does checks for JavaScript insertion (XSS).
A benefit of kses is that, in addition to making sure a user isn't entering something naughty, you can also restrict what tags they can use and make sure all tags are closed properly (I think the HTML formatter does this bit too, not sure). For example, you might not want users to insert tables into their post, or leave tags unclosed, because that can screw up the rest of the page's display.
Do you still plan to add an help link?