Forum Moderators: open
Basically some guy figured out that you can post HTML into the comment box and it will render as part of the web site. Needless to say, he completely destroyed my site and I had to temporarily take it off line.
Can anyone tell me how to disable the site from reading HTML posted in the comment box?
thanks!
[edited by: encyclo at 5:51 pm (utc) on Oct. 12, 2007]
[edit reason] no URLs thanks [/edit]
What you need to do is either parse out any HTML when it is written to what ever data stare you are using or you can pass the comment to a string in javascript that gets inserted into a tag and it will render the HTML tags as plain text.
Oh and welcome to WebmasterWorld
[edited by: Demaestro at 4:51 pm (utc) on Oct. 12, 2007]