Re: [PHP] E-mail injection question

2010-11-21 Thread Adam Richardson
On Sun, Nov 21, 2010 at 12:02 PM, Gary 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? > > $newlinecounter = 0; > foreach($_POST as $key => $val_newline){ > if(stristr($val_

[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? $val_newline){ if(stristr($val_newline, '\r')){$newlinecounter++;} if(stristr($val_newline, '\n')){$newlinecounter++;} if(stristr($val_ne