flash mail form header injection
I've made a flash form, passing it's variables to a php script. To prevent email header injection I'm using this line:
if (preg_match( "/[\r\n]/", $sendFrom ) || preg_match( "/[\r\n]/", $sendTo ) )
So if it finds newlines in the 'from' and 'to' fields, the emailing isn't executed.
Appearently this doesn't work since with it I don't receive the email, but without it I do.
Perhaps in a flash textfield these newlines work a bit differently?
