by NewVoxel on Tue Oct 16, 2012 8:56 am
([msg=70178]see Secure user input[/msg])
Hello everyone. I'm working on a new website and need a secure way to get input from the users. I made the mistake last time of not thoroughly validating the users input and plenty of XSS ensured. Is there a catchall function somewhere that works well for sanitizing user input for sql injection and XSS attacks, while still allowing certain types of html tags, or would I just be better off spending the extra time to create something like the BBCode that's found on these forums?
"Don't include a single line in your code which you could not explain to your grandmother in a matter of two minutes."And of course... assume your grandmother is not Ada Lovelace.
http://www.newvoxel.com/