The legacy web application I inherited, which was written specifically for Oxfam New Zealand in the classic ASP, replaces the string on user-nested input, removing the string "cast", presumably due to the translation function.
However, this means that none of our members can have a name or email address containing this string. This causes problems for someone with the last name Hardcastle.
This seems completely above top security - or at least there should be a way to ensure that user inputs are safe without changing the people’s entries with a “drop” in their name or email address.
Actual replacement is done with
strString = (Replace(strString, "cast", "", 1, -1, vbTextCompare))
I am only considering commenting on this line, would it be safe?
source
share