Tuesday, March 15, 2011

Why Does My Dog Smack Her Lips?

-Contact Form-CMS Pluck

After a few days of receiving spam from the web, and many came from the contact form on the web, so we decided to review the code itself, and found that in the form's module of our CMS unchecked you write an e-mail address.

We took a while to see the code and modify it, very simple lines, adding the following encodings do not allow emails to be sent that have not been spelled correctly:

if (eregi (" .+@+.+..{ 1.3} ")) {
print (" is a mail
n ");
} else {print (" NOT a mail
n " )

To download the form Contact Form CMS Pluck-modify, download here

Creative Commons License

0 comments:

Post a Comment