public
string
KillSqlInjectionWords(
WithBadChars)
{
[] SqlInjectionKeywords = {
"select"
,
"drop"
";"
"--"
"insert"
"delete"
"xp_"
"sp_"
"exec"
"'"
};
WithoutBadChars =
""
;
for
(
int
i = 0; i < SqlInjectionKeywords.Length; i++)
WithoutBadChars = WithBadChars.Replace(SqlInjectionKeywords[i],
);
WithBadChars = WithoutBadChars ;
}
return
WithoutBadChars;