I operate under taint mode - although I must confess to being a little in the dark as to what that means.
I am using the following code in order to filter input from a form.
It works as expected but I am trying to make it as secure as possible and found that if a user enters '<SCRIPT>' into a form field it treats it as a Java Code and it is not filtered. I assume that I could follow this with some other code and do some harm. I need to avoid this security hole and obviously I could check for the word '<SCRIPT>' in STDIN.
Is there a better way of doing this and what other holes should I be aware of?