Contact Form Submissions - Version 1.7.1

Version Description

  • Security fix
Download this release

Release Info

Developer jasongreen
Plugin Icon 128x128 Contact Form Submissions
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

Files changed (3) hide show
  1. Admin.php +3 -3
  2. contact-form-submissions.php +1 -1
  3. readme.txt +4 -1
Admin.php CHANGED
@@ -83,7 +83,7 @@ class WPCF7SAdmin
83
  <option value="0"><?php _e('Contact Form', 'contact-form-submissions'); ?></option>
84
  <?php foreach ($forms as $post) {
85
  ?>
86
- <?php $selected = ($post->ID == sanitize_text_field($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?>
87
  <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option>
88
  <?php
89
  } ?>
@@ -128,7 +128,7 @@ class WPCF7SAdmin
128
  global $post_type;
129
  if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
130
  if(isset($_GET['wpcf7_contact_form'])){
131
- $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
132
  }
133
  if (!empty($form_id)) {
134
  $query->set('meta_query', array(
@@ -155,7 +155,7 @@ class WPCF7SAdmin
155
 
156
  // dynamically add cols if the user selects a form
157
  if (isset($_GET['wpcf7_contact_form']) && !empty($_GET['wpcf7_contact_form'])) {
158
- $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
159
 
160
  $wpcf7s_columns = $this->get_available_columns($form_id);
161
 
83
  <option value="0"><?php _e('Contact Form', 'contact-form-submissions'); ?></option>
84
  <?php foreach ($forms as $post) {
85
  ?>
86
+ <?php $selected = ($post->ID == filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT)) ? 'selected' : ''; ?>
87
  <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option>
88
  <?php
89
  } ?>
128
  global $post_type;
129
  if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
130
  if(isset($_GET['wpcf7_contact_form'])){
131
+ $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT);
132
  }
133
  if (!empty($form_id)) {
134
  $query->set('meta_query', array(
155
 
156
  // dynamically add cols if the user selects a form
157
  if (isset($_GET['wpcf7_contact_form']) && !empty($_GET['wpcf7_contact_form'])) {
158
+ $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT);
159
 
160
  $wpcf7s_columns = $this->get_available_columns($form_id);
161
 
contact-form-submissions.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Contact Form Submissions
4
  Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
5
- Version: 1.7
6
  Author: Jason Green
7
  License: GPLv3
8
  Domain Path: /languages
2
  /*
3
  Plugin Name: Contact Form Submissions
4
  Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
5
+ Version: 1.7.1
6
  Author: Jason Green
7
  License: GPLv3
8
  Domain Path: /languages
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: contact form 7, save contact form, submissions, contact form db, cf7, wpcf
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
5
  Requires at least: 3.0.1
6
  Tested up to: 5.7
7
- Stable tag: 1.7
8
  Requires PHP: 5.6
9
  License: GPLv3
10
 
@@ -43,6 +43,9 @@ None yet
43
 
44
  == Changelog ==
45
 
 
 
 
46
  = 1.7 =
47
  * Security fixes
48
  * Fixed image upload with contact form 7 code change
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
5
  Requires at least: 3.0.1
6
  Tested up to: 5.7
7
+ Stable tag: 1.7.1
8
  Requires PHP: 5.6
9
  License: GPLv3
10
 
43
 
44
  == Changelog ==
45
 
46
+ = 1.7.1 =
47
+ * Security fix
48
+
49
  = 1.7 =
50
  * Security fixes
51
  * Fixed image upload with contact form 7 code change