Changeset 2511030
- Timestamp:
- 04/07/2021 06:13:56 PM (5 years ago)
- Location:
- contact-form-submissions
- Files:
-
- 3 edited
- 5 copied
-
tags/1.7.1 (copied) (copied from contact-form-submissions/trunk)
-
tags/1.7.1/Admin.php (copied) (copied from contact-form-submissions/trunk/Admin.php) (3 diffs)
-
tags/1.7.1/Submissions.php (copied) (copied from contact-form-submissions/trunk/Submissions.php)
-
tags/1.7.1/contact-form-submissions.php (copied) (copied from contact-form-submissions/trunk/contact-form-submissions.php) (1 diff)
-
tags/1.7.1/readme.txt (copied) (copied from contact-form-submissions/trunk/readme.txt) (2 diffs)
-
trunk/Admin.php (modified) (3 diffs)
-
trunk/contact-form-submissions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-submissions/tags/1.7.1/Admin.php
r2505563 r2511030 84 84 <?php foreach ($forms as $post) { 85 85 ?> 86 <?php $selected = ($post->ID == sanitize_text_field($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?>86 <?php $selected = ($post->ID == filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT)) ? 'selected' : ''; ?> 87 87 <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option> 88 88 <?php … … 129 129 if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) { 130 130 if(isset($_GET['wpcf7_contact_form'])){ 131 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);131 $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT); 132 132 } 133 133 if (!empty($form_id)) { … … 156 156 // dynamically add cols if the user selects a form 157 157 if (isset($_GET['wpcf7_contact_form']) && !empty($_GET['wpcf7_contact_form'])) { 158 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);158 $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT); 159 159 160 160 $wpcf7s_columns = $this->get_available_columns($form_id); -
contact-form-submissions/tags/1.7.1/contact-form-submissions.php
r2505563 r2511030 3 3 Plugin Name: Contact Form Submissions 4 4 Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database. 5 Version: 1.7 5 Version: 1.7.1 6 6 Author: Jason Green 7 7 License: GPLv3 -
contact-form-submissions/tags/1.7.1/readme.txt
r2505563 r2511030 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.7 7 Stable tag: 1.7 7 Stable tag: 1.7.1 8 8 Requires PHP: 5.6 9 9 License: GPLv3 … … 43 43 44 44 == Changelog == 45 46 = 1.7.1 = 47 * Security fix 45 48 46 49 = 1.7 = -
contact-form-submissions/trunk/Admin.php
r2505563 r2511030 84 84 <?php foreach ($forms as $post) { 85 85 ?> 86 <?php $selected = ($post->ID == sanitize_text_field($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?>86 <?php $selected = ($post->ID == filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT)) ? 'selected' : ''; ?> 87 87 <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option> 88 88 <?php … … 129 129 if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) { 130 130 if(isset($_GET['wpcf7_contact_form'])){ 131 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);131 $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT); 132 132 } 133 133 if (!empty($form_id)) { … … 156 156 // dynamically add cols if the user selects a form 157 157 if (isset($_GET['wpcf7_contact_form']) && !empty($_GET['wpcf7_contact_form'])) { 158 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);158 $form_id = filter_var($_GET['wpcf7_contact_form'], FILTER_SANITIZE_NUMBER_INT); 159 159 160 160 $wpcf7s_columns = $this->get_available_columns($form_id); -
contact-form-submissions/trunk/contact-form-submissions.php
r2505563 r2511030 3 3 Plugin Name: Contact Form Submissions 4 4 Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database. 5 Version: 1.7 5 Version: 1.7.1 6 6 Author: Jason Green 7 7 License: GPLv3 -
contact-form-submissions/trunk/readme.txt
r2505563 r2511030 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.7 7 Stable tag: 1.7 7 Stable tag: 1.7.1 8 8 Requires PHP: 5.6 9 9 License: GPLv3 … … 43 43 44 44 == Changelog == 45 46 = 1.7.1 = 47 * Security fix 45 48 46 49 = 1.7 =
Note: See TracChangeset
for help on using the changeset viewer.