Plugin Directory

Changeset 2505563


Ignore:
Timestamp:
03/29/2021 09:48:24 PM (5 years ago)
Author:
jasongreen
Message:

tagging version 1.7

Location:
contact-form-submissions
Files:
7 edited
2 copied

Legend:

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

    r2259362 r2505563  
    8484                <?php foreach ($forms as $post) {
    8585                ?>
    86                     <?php $selected = ($post->ID == esc_attr($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?>
     86                    <?php $selected = ($post->ID == sanitize_text_field($_GET['wpcf7_contact_form'])) ? '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 = esc_attr($_GET['wpcf7_contact_form']);
     131                $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
    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 = esc_attr($_GET['wpcf7_contact_form']);
     158            $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
    159159
    160160            $wpcf7s_columns = $this->get_available_columns($form_id);
     
    345345            <div id="misc-publishing-actions">
    346346                <div class="misc-pub-section curtime misc-pub-curtime">
    347                     <span id="timestamp"><?php _e('Submitted', 'contact-form-submissions'); ?> : <b><?php echo $date; ?></b></span>
     347                    <span id="timestamp"><?php _e('Submitted', 'contact-form-submissions'); ?> : <strong><?php echo $date; ?></strong></span>
    348348                </div>
    349349            </div>
     
    455455
    456456            // add BOM to fix UTF-8 in Excel
    457             fputs($output, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
     457            fputs($output, ( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
    458458
    459459            // use the existing query but get all posts
  • contact-form-submissions/tags/1.7/Submissions.php

    r1717754 r2505563  
    187187                     foreach ($attachments as $name => $file_path) {
    188188                         if (!empty($file_path)) {
     189                             if(is_array($file_path)){
     190                                 $file_path = current($file_path);
     191                             }
     192
    189193                             // get the file name
    190194                             $file_name = basename($file_path);
    191195
    192                              $copied = copy($file_path, $wpcf7s_dir . '/' . $file_name);
     196                             copy($file_path,$wpcf7s_dir . '/' . $file_name);
    193197
    194198                             add_post_meta($post_id, 'wpcf7s_file-' . $name, $file_name, false);
     
    209213    public function get_wpcf7s_dir(){
    210214        $upload_dir = wp_upload_dir();
    211         $wpcf7s_dir = apply_filters('wpcf7s_dir', $upload_dir['basedir'] .'/wpcf7-submissions');
    212 
    213         return $wpcf7s_dir;
     215        return apply_filters('wpcf7s_dir', $upload_dir['basedir'] .'/wpcf7-submissions');
    214216    }
    215217
     
    221223    public function get_wpcf7s_url(){
    222224        $upload_dir = wp_upload_dir();
    223         $wpcf7s_url = apply_filters('wpcf7s_url', $upload_dir['baseurl'] .'/wpcf7-submissions');
    224 
    225         return $wpcf7s_url;
     225        return apply_filters('wpcf7s_url', $upload_dir['baseurl'] .'/wpcf7-submissions');
    226226    }
    227227}
  • contact-form-submissions/tags/1.7/contact-form-submissions.php

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

    r2252208 r2505563  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
    55Requires at least: 3.0.1
    6 Tested up to: 5.2.3
    7 Stable tag: 1.6.4
     6Tested up to: 5.7
     7Stable tag: 1.7
     8Requires PHP: 5.6
    89License: GPLv3
    910
     
    4243
    4344== Changelog ==
     45
     46= 1.7 =
     47* Security fixes
     48* Fixed image upload with contact form 7 code change
    4449
    4550= 1.6.4 =
  • contact-form-submissions/trunk/Admin.php

    r2259362 r2505563  
    8484                <?php foreach ($forms as $post) {
    8585                ?>
    86                     <?php $selected = ($post->ID == esc_attr($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?>
     86                    <?php $selected = ($post->ID == sanitize_text_field($_GET['wpcf7_contact_form'])) ? '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 = esc_attr($_GET['wpcf7_contact_form']);
     131                $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
    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 = esc_attr($_GET['wpcf7_contact_form']);
     158            $form_id = sanitize_text_field($_GET['wpcf7_contact_form']);
    159159
    160160            $wpcf7s_columns = $this->get_available_columns($form_id);
     
    345345            <div id="misc-publishing-actions">
    346346                <div class="misc-pub-section curtime misc-pub-curtime">
    347                     <span id="timestamp"><?php _e('Submitted', 'contact-form-submissions'); ?> : <b><?php echo $date; ?></b></span>
     347                    <span id="timestamp"><?php _e('Submitted', 'contact-form-submissions'); ?> : <strong><?php echo $date; ?></strong></span>
    348348                </div>
    349349            </div>
     
    455455
    456456            // add BOM to fix UTF-8 in Excel
    457             fputs($output, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
     457            fputs($output, ( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
    458458
    459459            // use the existing query but get all posts
  • contact-form-submissions/trunk/Submissions.php

    r1717754 r2505563  
    187187                     foreach ($attachments as $name => $file_path) {
    188188                         if (!empty($file_path)) {
     189                             if(is_array($file_path)){
     190                                 $file_path = current($file_path);
     191                             }
     192
    189193                             // get the file name
    190194                             $file_name = basename($file_path);
    191195
    192                              $copied = copy($file_path, $wpcf7s_dir . '/' . $file_name);
     196                             copy($file_path,$wpcf7s_dir . '/' . $file_name);
    193197
    194198                             add_post_meta($post_id, 'wpcf7s_file-' . $name, $file_name, false);
     
    209213    public function get_wpcf7s_dir(){
    210214        $upload_dir = wp_upload_dir();
    211         $wpcf7s_dir = apply_filters('wpcf7s_dir', $upload_dir['basedir'] .'/wpcf7-submissions');
    212 
    213         return $wpcf7s_dir;
     215        return apply_filters('wpcf7s_dir', $upload_dir['basedir'] .'/wpcf7-submissions');
    214216    }
    215217
     
    221223    public function get_wpcf7s_url(){
    222224        $upload_dir = wp_upload_dir();
    223         $wpcf7s_url = apply_filters('wpcf7s_url', $upload_dir['baseurl'] .'/wpcf7-submissions');
    224 
    225         return $wpcf7s_url;
     225        return apply_filters('wpcf7s_url', $upload_dir['baseurl'] .'/wpcf7-submissions');
    226226    }
    227227}
  • contact-form-submissions/trunk/contact-form-submissions.php

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

    r2252208 r2505563  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
    55Requires at least: 3.0.1
    6 Tested up to: 5.2.3
    7 Stable tag: 1.6.4
     6Tested up to: 5.7
     7Stable tag: 1.7
     8Requires PHP: 5.6
    89License: GPLv3
    910
     
    4243
    4344== Changelog ==
     45
     46= 1.7 =
     47* Security fixes
     48* Fixed image upload with contact form 7 code change
    4449
    4550= 1.6.4 =
Note: See TracChangeset for help on using the changeset viewer.