Contact Form Email - Version 1.2.93

Version Description

  • Fix to database encoding
Download this release

Release Info

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

Code changes from version 1.2.92 to 1.2.93

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.92 =
460
  * Code improvements
461
 
@@ -1036,5 +1039,5 @@ When you click a field already added into the contact form builder area, you can
1036
 
1037
  == Upgrade Notice ==
1038
 
1039
- = 1.2.92 =
1040
- * Code improvements
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.93 =
460
+ * Fix to database encoding
461
+
462
  = 1.2.92 =
463
  * Code improvements
464
 
1039
 
1040
  == Upgrade Notice ==
1041
 
1042
+ = 1.2.93 =
1043
+ * Fix to database encoding
captcha/captcha.php CHANGED
@@ -62,9 +62,9 @@ $length = 0;
62
  for ($i = 0; $i < $letter_count; $i++) {
63
  $str .= chr(mt_rand(97, 122))." ";
64
  }
65
- $_SESSION['rand_code'.$_GET["ps"]] = str_replace(" ", "", $str);
66
 
67
- setCookie('rand_code'.$_GET["ps"], md5(str_replace(" ", "", $str)), time()+36000,"/");
68
 
69
  $image = imagecreatetruecolor($imgX, $imgY);
70
  $backgr_col = imagecolorallocate($image, $bcolor["r"],$bcolor["g"],$bcolor["b"]);
62
  for ($i = 0; $i < $letter_count; $i++) {
63
  $str .= chr(mt_rand(97, 122))." ";
64
  }
65
+ $_SESSION['rand_code'.sanitize_key($_GET["ps"])] = str_replace(" ", "", $str);
66
 
67
+ setCookie('rand_code'.sanitize_key($_GET["ps"]), md5(str_replace(" ", "", $str)), time()+36000,"/");
68
 
69
  $image = imagecreatetruecolor($imgX, $imgY);
70
  $backgr_col = imagecolorallocate($image, $bcolor["r"],$bcolor["g"],$bcolor["b"]);
cp-admin-int-list.inc.php CHANGED
@@ -122,7 +122,7 @@ else if (isset($_GET['ac']) && $_GET['ac'] == 'st')
122
  update_option( 'CP_CFTE_LOAD_SCRIPTS', ($_GET["scr"]=="1"?"0":"1") );
123
  if ($_GET["chs"] != '')
124
  {
125
- $target_charset = esc_sql(sanitize_text_field($_GET["chs"]));
126
  $tables = array( $wpdb->prefix.$this->table_messages, $wpdb->prefix.$this->table_items );
127
  foreach ($tables as $tab)
128
  {
@@ -133,7 +133,7 @@ else if (isset($_GET['ac']) && $_GET['ac'] == 'st')
133
  $type = $item->Type;
134
  if (preg_match("/^varchar\((\d+)\)$/i", $type, $mat) || !strcasecmp($type, "CHAR") || !strcasecmp($type, "TEXT") || !strcasecmp($type, "MEDIUMTEXT"))
135
  {
136
- $wpdb->query("ALTER TABLE {$tab} CHANGE {$name} {$name} {$type} COLLATE {$target_charset}");
137
  }
138
  }
139
  }
122
  update_option( 'CP_CFTE_LOAD_SCRIPTS', ($_GET["scr"]=="1"?"0":"1") );
123
  if ($_GET["chs"] != '')
124
  {
125
+ $target_charset = str_replace('`','``',sanitize_text_field($_GET["chs"]));
126
  $tables = array( $wpdb->prefix.$this->table_messages, $wpdb->prefix.$this->table_items );
127
  foreach ($tables as $tab)
128
  {
133
  $type = $item->Type;
134
  if (preg_match("/^varchar\((\d+)\)$/i", $type, $mat) || !strcasecmp($type, "CHAR") || !strcasecmp($type, "TEXT") || !strcasecmp($type, "MEDIUMTEXT"))
135
  {
136
+ $wpdb->query("ALTER TABLE {$tab} CHANGE {$name} {$name} {$type} COLLATE `{$target_charset}`");
137
  }
138
  }
139
  }
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.92
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.93
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email