|
Which error does it give (there are two relating to subject)?
I think this line may be wrong
} elseif ( !ereg( "[][{}()*+?.\\^$|]", $_REQUEST['subject'] ) ) {
as I think it might be meant to be
} elseif ( ereg( "[][{}()*+?.\\^$|]", $_REQUEST['subject'] ) ) {
note no ! before ereg. That said I am not quite sure why it is checking for that exact set of chars and I always use preg not ereg so may be wrong.
Also note this script doesn't look terribly secure to me for a production environment, though it does at least try to clean it's inputs.
Regards,
Dai
|