Changeset 2505563
- Timestamp:
- 03/29/2021 09:48:24 PM (5 years ago)
- Location:
- contact-form-submissions
- Files:
-
- 7 edited
- 2 copied
-
tags/1.7 (copied) (copied from contact-form-submissions/trunk)
-
tags/1.7/Admin.php (copied) (copied from contact-form-submissions/trunk/Admin.php) (5 diffs)
-
tags/1.7/Submissions.php (modified) (3 diffs)
-
tags/1.7/contact-form-submissions.php (modified) (1 diff)
-
tags/1.7/readme.txt (modified) (2 diffs)
-
trunk/Admin.php (modified) (5 diffs)
-
trunk/Submissions.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/Admin.php
r2259362 r2505563 84 84 <?php foreach ($forms as $post) { 85 85 ?> 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' : ''; ?> 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 = esc_attr($_GET['wpcf7_contact_form']);131 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']); 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 = esc_attr($_GET['wpcf7_contact_form']);158 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']); 159 159 160 160 $wpcf7s_columns = $this->get_available_columns($form_id); … … 345 345 <div id="misc-publishing-actions"> 346 346 <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> 348 348 </div> 349 349 </div> … … 455 455 456 456 // 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) )); 458 458 459 459 // use the existing query but get all posts -
contact-form-submissions/tags/1.7/Submissions.php
r1717754 r2505563 187 187 foreach ($attachments as $name => $file_path) { 188 188 if (!empty($file_path)) { 189 if(is_array($file_path)){ 190 $file_path = current($file_path); 191 } 192 189 193 // get the file name 190 194 $file_name = basename($file_path); 191 195 192 $copied = copy($file_path,$wpcf7s_dir . '/' . $file_name);196 copy($file_path,$wpcf7s_dir . '/' . $file_name); 193 197 194 198 add_post_meta($post_id, 'wpcf7s_file-' . $name, $file_name, false); … … 209 213 public function get_wpcf7s_dir(){ 210 214 $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'); 214 216 } 215 217 … … 221 223 public function get_wpcf7s_url(){ 222 224 $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'); 226 226 } 227 227 } -
contact-form-submissions/tags/1.7/contact-form-submissions.php
r2252208 r2505563 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. 6.45 Version: 1.7 6 6 Author: Jason Green 7 7 License: GPLv3 -
contact-form-submissions/tags/1.7/readme.txt
r2252208 r2505563 4 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE 5 5 Requires at least: 3.0.1 6 Tested up to: 5.2.3 7 Stable tag: 1.6.4 6 Tested up to: 5.7 7 Stable tag: 1.7 8 Requires PHP: 5.6 8 9 License: GPLv3 9 10 … … 42 43 43 44 == Changelog == 45 46 = 1.7 = 47 * Security fixes 48 * Fixed image upload with contact form 7 code change 44 49 45 50 = 1.6.4 = -
contact-form-submissions/trunk/Admin.php
r2259362 r2505563 84 84 <?php foreach ($forms as $post) { 85 85 ?> 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' : ''; ?> 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 = esc_attr($_GET['wpcf7_contact_form']);131 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']); 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 = esc_attr($_GET['wpcf7_contact_form']);158 $form_id = sanitize_text_field($_GET['wpcf7_contact_form']); 159 159 160 160 $wpcf7s_columns = $this->get_available_columns($form_id); … … 345 345 <div id="misc-publishing-actions"> 346 346 <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> 348 348 </div> 349 349 </div> … … 455 455 456 456 // 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) )); 458 458 459 459 // use the existing query but get all posts -
contact-form-submissions/trunk/Submissions.php
r1717754 r2505563 187 187 foreach ($attachments as $name => $file_path) { 188 188 if (!empty($file_path)) { 189 if(is_array($file_path)){ 190 $file_path = current($file_path); 191 } 192 189 193 // get the file name 190 194 $file_name = basename($file_path); 191 195 192 $copied = copy($file_path,$wpcf7s_dir . '/' . $file_name);196 copy($file_path,$wpcf7s_dir . '/' . $file_name); 193 197 194 198 add_post_meta($post_id, 'wpcf7s_file-' . $name, $file_name, false); … … 209 213 public function get_wpcf7s_dir(){ 210 214 $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'); 214 216 } 215 217 … … 221 223 public function get_wpcf7s_url(){ 222 224 $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'); 226 226 } 227 227 } -
contact-form-submissions/trunk/contact-form-submissions.php
r2252208 r2505563 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. 6.45 Version: 1.7 6 6 Author: Jason Green 7 7 License: GPLv3 -
contact-form-submissions/trunk/readme.txt
r2252208 r2505563 4 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE 5 5 Requires at least: 3.0.1 6 Tested up to: 5.2.3 7 Stable tag: 1.6.4 6 Tested up to: 5.7 7 Stable tag: 1.7 8 Requires PHP: 5.6 8 9 License: GPLv3 9 10 … … 42 43 43 44 == Changelog == 45 46 = 1.7 = 47 * Security fixes 48 * Fixed image upload with contact form 7 code change 44 49 45 50 = 1.6.4 =
Note: See TracChangeset
for help on using the changeset viewer.