Contact Form Email - Version 1.2.83

Version Description

  • Fixed data-saving bug
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.83
Comparing to
See all releases

Code changes from version 1.2.82 to 1.2.83

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.2.82 =
460
  * Fixed bug in email settings
461
 
@@ -1006,5 +1009,5 @@ When you click a field already added into the contact form builder area, you can
1006
 
1007
  == Upgrade Notice ==
1008
 
1009
- = 1.2.82 =
1010
- * Fixed bug in email settings
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.83 =
460
+ * Fixed data-saving bug
461
+
462
  = 1.2.82 =
463
  * Fixed bug in email settings
464
 
1009
 
1010
  == Upgrade Notice ==
1011
 
1012
+ = 1.2.83 =
1013
+ * Fixed data-saving bug
cp-admin-int.inc.php CHANGED
@@ -210,6 +210,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
210
  <div class="ahb-adintsection" data-step="2">
211
  <div class="inside">
212
 
 
213
  <input type="hidden" name="form_structure" id="form_structure" size="180" value="<?php echo str_replace('"','&quot;',str_replace("\r","",str_replace("\n","",esc_attr($this->cleanJSON($this->get_option('form_structure', CP_CFEMAIL_DEFAULT_form_structure)))))); ?>" />
214
 
215
  <script type="text/javascript">
210
  <div class="ahb-adintsection" data-step="2">
211
  <div class="inside">
212
 
213
+ <input type="hidden" name="form_structure_control" id="form_structure_control" value="&quot;&quot;&quot;&quot;&quot;&quot;" />
214
  <input type="hidden" name="form_structure" id="form_structure" size="180" value="<?php echo str_replace('"','&quot;',str_replace("\r","",str_replace("\n","",esc_attr($this->cleanJSON($this->get_option('form_structure', CP_CFEMAIL_DEFAULT_form_structure)))))); ?>" />
215
 
216
  <script type="text/javascript">
cp-main-class.inc.php CHANGED
@@ -896,7 +896,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
896
 
897
  $this->item = $_POST[$this->prefix."_id"];
898
 
899
- while ((substr_count($_POST['form_structure'],"\\") > 30) || substr_count($_POST['form_structure'],"\\\"title\\\":"))
900
  foreach ($_POST as $item => $value)
901
  if (!is_array($value))
902
  $_POST[$item] = stripcslashes($value);
896
 
897
  $this->item = $_POST[$this->prefix."_id"];
898
 
899
+ if ((substr_count($_POST['form_structure_control'],"\\") > 1) || substr_count($_POST['form_structure_control'],"\\\"title\\\":"))
900
  foreach ($_POST as $item => $value)
901
  if (!is_array($value))
902
  $_POST[$item] = stripcslashes($value);
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.2.82
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.2.83
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email