Version Description
- Improved antispam rules
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.3.02 |
Comparing to | |
See all releases |
Code changes from version 1.3.01 to 1.3.02
- README.txt +5 -2
- cp-main-class.inc.php +9 -0
- form-to-email.php +1 -1
README.txt
CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
|
|
456 |
|
457 |
== Changelog ==
|
458 |
|
|
|
|
|
|
|
459 |
= 1.3.01 =
|
460 |
* Fixed bug in global email reports
|
461 |
|
@@ -1060,5 +1063,5 @@ When you click a field already added into the contact form builder area, you can
|
|
1060 |
|
1061 |
== Upgrade Notice ==
|
1062 |
|
1063 |
-
= 1.3.
|
1064 |
-
*
|
456 |
|
457 |
== Changelog ==
|
458 |
|
459 |
+
= 1.3.02 =
|
460 |
+
* Improved antispam rules
|
461 |
+
|
462 |
= 1.3.01 =
|
463 |
* Fixed bug in global email reports
|
464 |
|
1063 |
|
1064 |
== Upgrade Notice ==
|
1065 |
|
1066 |
+
= 1.3.02 =
|
1067 |
+
* Improved antispam rules
|
cp-main-class.inc.php
CHANGED
@@ -764,6 +764,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
764 |
//---------------------------
|
765 |
$buffer = "";
|
766 |
$params = array();
|
|
|
767 |
if (!(isset($_POST["edititem"]) && $_POST["edititem"]))
|
768 |
$params["referrer"] = esc_url_raw($_POST["refpage".$sequence]);
|
769 |
foreach ($_POST as $item => $value)
|
@@ -771,6 +772,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
771 |
{
|
772 |
$buffer .= $fields[str_replace($sequence,'',$item)] . ": ". (is_array($value)?(implode(", ",$value)):($value)) . "\n\n";
|
773 |
$params[str_replace($sequence,'',$item)] = $value;
|
|
|
774 |
}
|
775 |
|
776 |
foreach ($_FILES as $item => $value)
|
@@ -778,6 +780,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
778 |
{
|
779 |
$buffer .= $fields[str_replace($sequence,'',$item)] . ": ". $value["name"] . "\n\n";
|
780 |
$params[str_replace($sequence,'',$item)] = $value["name"];
|
|
|
781 |
$movefile = wp_handle_upload( $_FILES[$item], array( 'test_form' => false ) );
|
782 |
if ( $movefile )
|
783 |
{
|
@@ -788,6 +791,12 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
788 |
}
|
789 |
$buffer_A = $buffer;
|
790 |
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
$_SESSION['rand_code'.$sequence] = '';
|
792 |
setCookie('rand_code'.$sequence, '', time()+36000,"/");
|
793 |
|
764 |
//---------------------------
|
765 |
$buffer = "";
|
766 |
$params = array();
|
767 |
+
$founddata = false;
|
768 |
if (!(isset($_POST["edititem"]) && $_POST["edititem"]))
|
769 |
$params["referrer"] = esc_url_raw($_POST["refpage".$sequence]);
|
770 |
foreach ($_POST as $item => $value)
|
772 |
{
|
773 |
$buffer .= $fields[str_replace($sequence,'',$item)] . ": ". (is_array($value)?(implode(", ",$value)):($value)) . "\n\n";
|
774 |
$params[str_replace($sequence,'',$item)] = $value;
|
775 |
+
$founddata = true;
|
776 |
}
|
777 |
|
778 |
foreach ($_FILES as $item => $value)
|
780 |
{
|
781 |
$buffer .= $fields[str_replace($sequence,'',$item)] . ": ". $value["name"] . "\n\n";
|
782 |
$params[str_replace($sequence,'',$item)] = $value["name"];
|
783 |
+
$founddata = true;
|
784 |
$movefile = wp_handle_upload( $_FILES[$item], array( 'test_form' => false ) );
|
785 |
if ( $movefile )
|
786 |
{
|
791 |
}
|
792 |
$buffer_A = $buffer;
|
793 |
|
794 |
+
if (!$founddata)
|
795 |
+
{
|
796 |
+
echo 'Empty post! No data received.';
|
797 |
+
exit;
|
798 |
+
}
|
799 |
+
|
800 |
$_SESSION['rand_code'.$sequence] = '';
|
801 |
setCookie('rand_code'.$sequence, '', time()+36000,"/");
|
802 |
|
form-to-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
-
Version: 1.3.
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
+
Version: 1.3.02
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|