Could this mail form vulnerable? (Perhaps to spam others)

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

you should also add in the subject, to, etc lines to that last regex
Skara, would you like to clarify what you mean? As far as I know, with the foreach loop we go through all the POST vars, so that includes any subject, to etc lines, whichever you have in your form.

Code: Select all

foreach( $_POST as $value ){
Post Reply