Question
allowing only specific characters in input
Hello,
My projects were auditted for security and it was found a logged in user (only) could hack my programs because I was not being careful to keep certain characters from being input, not just pointy brackets and pound signs. I am now told to do no client side checking.
I am thinking to define an allowable character list to checking each input box character by character.
What is a faster and more efficient way than looping through each input value's characters 1 by 1 and using find() and to check if those characters are in the list of good characters?
Thanks.
My projects were auditted for security and it was found a logged in user (only) could hack my programs because I was not being careful to keep certain characters from being input, not just pointy brackets and pound signs. I am now told to do no client side checking.
I am thinking to define an allowable character list to checking each input box character by character.
What is a faster and more efficient way than looping through each input value's characters 1 by 1 and using find() and to check if those characters are in the list of good characters?
Thanks.
