Plugin Directory

Changeset 2511030


Ignore:
Timestamp:
04/07/2021 06:13:56 PM (5 years ago)
Author:
jasongreen
Message:

tagging version 1.7.1

Location:
contact-form-submissions
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • contact-form-submissions/tags/1.7.1/Admin.php

    r2505563 r2511030  
    8484                <?php foreach ($forms as $post) {
    8585                ?>
    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' : ''; ?>
    8787                    <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option>
    8888                <?php
     
    129129        if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
    130130            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);
    132132            }
    133133            if (!empty($form_id)) {
     
    156156        // dynamically add cols if the user selects a form
    157157        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);
    159159
    160160            $wpcf7s_columns = $this->get_available_columns($form_id);
  • contact-form-submissions/tags/1.7.1/contact-form-submissions.php

    r2505563 r2511030  
    33Plugin Name: Contact Form Submissions
    44Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
    5 Version:     1.7
     5Version:     1.7.1
    66Author:      Jason Green
    77License:     GPLv3
  • contact-form-submissions/tags/1.7.1/readme.txt

    r2505563 r2511030  
    55Requires at least: 3.0.1
    66Tested up to: 5.7
    7 Stable tag: 1.7
     7Stable tag: 1.7.1
    88Requires PHP: 5.6
    99License: GPLv3
     
    4343
    4444== Changelog ==
     45
     46= 1.7.1 =
     47* Security fix
    4548
    4649= 1.7 =
  • contact-form-submissions/trunk/Admin.php

    r2505563 r2511030  
    8484                <?php foreach ($forms as $post) {
    8585                ?>
    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' : ''; ?>
    8787                    <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option>
    8888                <?php
     
    129129        if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
    130130            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);
    132132            }
    133133            if (!empty($form_id)) {
     
    156156        // dynamically add cols if the user selects a form
    157157        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);
    159159
    160160            $wpcf7s_columns = $this->get_available_columns($form_id);
  • contact-form-submissions/trunk/contact-form-submissions.php

    r2505563 r2511030  
    33Plugin Name: Contact Form Submissions
    44Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
    5 Version:     1.7
     5Version:     1.7.1
    66Author:      Jason Green
    77License:     GPLv3
  • contact-form-submissions/trunk/readme.txt

    r2505563 r2511030  
    55Requires at least: 3.0.1
    66Tested up to: 5.7
    7 Stable tag: 1.7
     7Stable tag: 1.7.1
    88Requires PHP: 5.6
    99License: GPLv3
     
    4343
    4444== Changelog ==
     45
     46= 1.7.1 =
     47* Security fix
    4548
    4649= 1.7 =
Note: See TracChangeset for help on using the changeset viewer.