[PHP] E-mail injection question

2010-11-21 Thread Gary
I have been testing various scripts to kill email injection attacks. I adapted this script and it seems to work well. Does anyone see any issues with this? ?php $newlinecounter = 0; foreach($_POST as $key = $val_newline){ if(stristr($val_newline, '\r')){$newlinecounter++;}

Re: [PHP] E-mail injection question

2010-11-21 Thread Adam Richardson
On Sun, Nov 21, 2010 at 12:02 PM, Gary gp...@paulgdesigns.com wrote: I have been testing various scripts to kill email injection attacks. I adapted this script and it seems to work well. Does anyone see any issues with this? ?php $newlinecounter = 0; foreach($_POST as $key =