Contact Form Email - Version 1.2.88

Version Description

  • Fixed bug in iconv function
Download this release

Release Info

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

Code changes from version 1.2.87 to 1.2.88

Files changed (3) hide show
  1. README.txt +5 -2
  2. cp-main-class.inc.php +11 -2
  3. 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.2.87 =
460
  * Compatible with WordPress 5.2
461
 
@@ -1021,5 +1024,5 @@ When you click a field already added into the contact form builder area, you can
1021
 
1022
  == Upgrade Notice ==
1023
 
1024
- = 1.2.87 =
1025
- * Compatible with WordPress 5.2
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.88 =
460
+ * Fixed bug in iconv function
461
+
462
  = 1.2.87 =
463
  * Compatible with WordPress 5.2
464
 
1024
 
1025
  == Upgrade Notice ==
1026
 
1027
+ = 1.2.88 =
1028
+ * Fixed bug in iconv function
cp-main-class.inc.php CHANGED
@@ -1286,7 +1286,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1286
  $end = count($fields);
1287
  for ($i=0; $i<$end; $i++)
1288
  {
1289
- $hlabel = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $this->get_form_field_label($fields[$i],$form));
1290
  $buffer .= '"'.str_replace('"','""', $hlabel).'",';
1291
  }
1292
  $buffer .= "\n";
@@ -1298,7 +1298,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1298
  $item[$i] = '';
1299
  if (is_array($item[$i]))
1300
  $item[$i] = implode($item[$i],',');
1301
- $item[$i] = iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $item[$i]);
1302
  $buffer .= '"'.str_replace('"','""', $item[$i]).'",';
1303
  }
1304
  $buffer .= "\n";
@@ -1385,6 +1385,15 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
1385
  } // end check_reports function
1386
 
1387
 
 
 
 
 
 
 
 
 
 
1388
  } // end class
1389
 
1390
 
1286
  $end = count($fields);
1287
  for ($i=0; $i<$end; $i++)
1288
  {
1289
+ $hlabel = $this->iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $this->get_form_field_label($fields[$i],$form));
1290
  $buffer .= '"'.str_replace('"','""', $hlabel).'",';
1291
  }
1292
  $buffer .= "\n";
1298
  $item[$i] = '';
1299
  if (is_array($item[$i]))
1300
  $item[$i] = implode($item[$i],',');
1301
+ $item[$i] = $this->iconv("utf-8", "ISO-8859-1//TRANSLIT//IGNORE", $item[$i]);
1302
  $buffer .= '"'.str_replace('"','""', $item[$i]).'",';
1303
  }
1304
  $buffer .= "\n";
1385
  } // end check_reports function
1386
 
1387
 
1388
+ protected function iconv($from, $to, $text)
1389
+ {
1390
+ if (function_exists('iconv'))
1391
+ return iconv($from, $to, $text);
1392
+ else
1393
+ return $text;
1394
+ }
1395
+
1396
+
1397
  } // end class
1398
 
1399
 
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.87
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.88
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email