Please do not put this script online. It will allow sending emails with arbitrary content to arbitrary recipients and thus be an open gate to spammers all over the world.
The cause for this is that the form parameters are not cleaned or validated in any way and thus $FORM{email} can contain newlines which will be passed on to your mailer verbatim. Also, the general code quality of this script is very low, so I'm not sure there aren't other problems with this code. If you are no Perl programmer and want to keep with this script, my best advice is to get somebody who is a Perl programmer to fix this script for you. The better approach is to use the Simple Search engine of the NMS Project. These are especially geared towards simple, stand-alone scripts.
In reply to Re: CGI search script: Exclusion list
by Corion
in thread CGI search script: Exclusion list
by Perlwannabe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |