kirka
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by kirka
-
-
@Ken
I tried single quotes. The function still dies on a single character r or n.
Thanks,
Kirka -
@Ray
I did try this, but it did not work. The || is the logical Or operator.
I think my problem is with the backslash being stripped off in the search.
Thanks,
Kirka -
When I run this code below, it dies when the character r or n is encountered. I only want it to die when there is a backslash and r or backslash and n together. I have tried two backlsashes and that does not work either.
Does anybody know how I can fix this?
Thanks,
Kirka
function checkinjection($checkstring)
{
if (eregi("\r",$checkstring) || eregi("\n",$checkstring)){
die("Problem Sending Email - MI");
}
}
Trying to use eregi to check string for email injection
in PHP Coding Help
Posted
Thanks.
Kirka