Contact Form Builder – a plugin for creating contact and feedback forms - Version 1.0.25

Version Description

Security issue fixed.

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Contact Form Builder – a plugin for creating contact and feedback forms
Version 1.0.25
Comparing to
See all releases

Code changes from version 1.0.24 to 1.0.25

admin/models/CFMModelBlocked_ips_cfm.php CHANGED
@@ -21,8 +21,9 @@ class CFMModelBlocked_ips_cfm {
21
  public function get_rows_data() {
22
  global $wpdb;
23
  $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html($_POST['asc_or_desc']) : 'desc');
25
- $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
 
26
  if (isset($_POST['page_number']) && $_POST['page_number']) {
27
  $limit = ((int) $_POST['page_number'] - 1) * 20;
28
  }
21
  public function get_rows_data() {
22
  global $wpdb;
23
  $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE `ip` LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
+ $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'asc') ? 'asc' : 'desc');
25
+ $order_by = ((isset($_POST['order_by']) && esc_html($_POST['order_by']) == 'ip') ? 'ip' : 'id');
26
+ $order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
27
  if (isset($_POST['page_number']) && $_POST['page_number']) {
28
  $limit = ((int) $_POST['page_number'] - 1) * 20;
29
  }
admin/models/CFMModelManage_cfm.php CHANGED
@@ -21,8 +21,10 @@ class CFMModelManage_cfm {
21
  public function get_rows_data() {
22
  global $wpdb;
23
  $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html($_POST['asc_or_desc']) : 'asc');
25
- $order_by = ' ORDER BY ' . ((isset($_POST['order_by']) && esc_html($_POST['order_by']) != '') ? esc_html($_POST['order_by']) : 'id') . ' ' . $asc_or_desc;
 
 
26
  if (isset($_POST['page_number']) && $_POST['page_number']) {
27
  $limit = ((int) $_POST['page_number'] - 1) * 20;
28
  }
21
  public function get_rows_data() {
22
  global $wpdb;
23
  $where = ((isset($_POST['search_value']) && (esc_html($_POST['search_value']) != '')) ? 'WHERE title LIKE "%' . esc_html($_POST['search_value']) . '%"' : '');
24
+ $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'desc') ? 'desc' : 'asc');
25
+ $order_by_arr = array('id', 'title', 'mail');
26
+ $order_by = ((isset($_POST['order_by']) && in_array(esc_html($_POST['order_by']), $order_by_arr)) ? esc_html($_POST['order_by']) : 'id');
27
+ $order_by = ' ORDER BY ' . $order_by . ' ' . $asc_or_desc;
28
  if (isset($_POST['page_number']) && $_POST['page_number']) {
29
  $limit = ((int) $_POST['page_number'] - 1) * 20;
30
  }
contact-form-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
- * Version: 1.0.24
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -198,7 +198,7 @@ if (class_exists('WP_Widget')) {
198
  // Activate plugin.
199
  function contact_form_maker_activate() {
200
  $version = get_option("wd_contact_form_maker_version");
201
- $new_version = '1.0.24';
202
  if ($version && version_compare($version, $new_version, '<')) {
203
  require_once WD_CFM_DIR . "/contact-form-builder-update.php";
204
  contact_form_maker_update($version);
3
  * Plugin Name: Contact Form Builder
4
  * Plugin URI: http://web-dorado.com/products/wordpress-contact-form-builder.html
5
  * Description: Contact Form Builder is an advanced plugin to add contact forms into your website. It comes along with multiple default templates which can be customized.
6
+ * Version: 1.0.25
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
198
  // Activate plugin.
199
  function contact_form_maker_activate() {
200
  $version = get_option("wd_contact_form_maker_version");
201
+ $new_version = '1.0.25';
202
  if ($version && version_compare($version, $new_version, '<')) {
203
  require_once WD_CFM_DIR . "/contact-form-builder-update.php";
204
  contact_form_maker_update($version);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Contact Form Builder ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
4
- Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contact forms, custom form, Contact Form Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha, advanced form, recaptcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.0.24
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -138,6 +138,9 @@ After downloading the ZIP file,
138
 
139
  == Changelog ==
140
 
 
 
 
141
  = 1.0.24 =
142
  Changed: Featured plugins page.
143
 
1
  === Contact Form Builder ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-contact-form-builder.html
4
+ Tags: form, forms, contact form, contact forms, contact form plugin, contact forms plugin, forms plugin, Contact Form Builder, contact form manager, multiple contact forms, custom form, Contact Form Builder with recaptcha, contact form with google map, feedback form, feedback forms, contact us, wordpress contact form, email form, feedback, web form, contact me, email, contact manager, contact us form, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, text input, validation, send copy, form with captcha, advanced form, recaptcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.0.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
138
 
139
  == Changelog ==
140
 
141
+ = 1.0.25 =
142
+ Security issue fixed.
143
+
144
  = 1.0.24 =
145
  Changed: Featured plugins page.
146