Version Description
- Fixed the problem with character encoding when exporting. Thanks to archie22is for the fix.
Download this release
Release Info
Developer | jasongreen |
Plugin | Contact Form Submissions |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- Admin.php +5 -2
- contact-form-submissions.php +1 -1
- readme.txt +4 -1
Admin.php
CHANGED
@@ -442,6 +442,9 @@ class WPCF7SAdmin
|
|
442 |
public function export_request(){
|
443 |
if(isset($_GET['wpcf7s-export']) && !empty($_GET['wpcf7s-export']) && is_admin()) {
|
444 |
|
|
|
|
|
|
|
445 |
// output headers so that the file is downloaded rather than displayed
|
446 |
header('Content-Type: text/csv');
|
447 |
header('Content-Disposition: attachment; filename=contact-form-submissions.csv');
|
@@ -478,7 +481,7 @@ class WPCF7SAdmin
|
|
478 |
}
|
479 |
|
480 |
$value = sanitize_text_field($value);
|
481 |
-
$values[$key] = mb_convert_encoding($value,
|
482 |
|
483 |
// if we havent already stored this column, save it now
|
484 |
if(!in_array($key, $columns)){
|
@@ -499,7 +502,7 @@ class WPCF7SAdmin
|
|
499 |
$files[] = "$upload_dir/wpcf7-submissions/$post_id/$singleFile";
|
500 |
}
|
501 |
}
|
502 |
-
$values[$keyFile] = mb_convert_encoding(implode(',', $files),
|
503 |
|
504 |
// if we havent already stored this column, save it now
|
505 |
if(!in_array($keyFile, $columns)){
|
442 |
public function export_request(){
|
443 |
if(isset($_GET['wpcf7s-export']) && !empty($_GET['wpcf7s-export']) && is_admin()) {
|
444 |
|
445 |
+
// get charset
|
446 |
+
$charset = get_bloginfo( 'charset' );
|
447 |
+
|
448 |
// output headers so that the file is downloaded rather than displayed
|
449 |
header('Content-Type: text/csv');
|
450 |
header('Content-Disposition: attachment; filename=contact-form-submissions.csv');
|
481 |
}
|
482 |
|
483 |
$value = sanitize_text_field($value);
|
484 |
+
$values[$key] = mb_convert_encoding($value, $charset);
|
485 |
|
486 |
// if we havent already stored this column, save it now
|
487 |
if(!in_array($key, $columns)){
|
502 |
$files[] = "$upload_dir/wpcf7-submissions/$post_id/$singleFile";
|
503 |
}
|
504 |
}
|
505 |
+
$values[$keyFile] = mb_convert_encoding(implode(',', $files), $charset);
|
506 |
|
507 |
// if we havent already stored this column, save it now
|
508 |
if(!in_array($keyFile, $columns)){
|
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.6.
|
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.6.2
|
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: 4.8.1
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save & Export your Contact Form 7 submissions.
|
@@ -42,6 +42,9 @@ None yet
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.6.1 =
|
46 |
* Fixed an issue with character encoding in exports
|
47 |
* Fixed an issue with blank exports
|
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: 4.8.1
|
7 |
+
Stable tag: 1.6.2
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save & Export your Contact Form 7 submissions.
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.6.2 =
|
46 |
+
* Fixed the problem with character encoding when exporting. Thanks to [archie22is](https://wordpress.org/support/users/archie22is/) for the fix.
|
47 |
+
|
48 |
= 1.6.1 =
|
49 |
* Fixed an issue with character encoding in exports
|
50 |
* Fixed an issue with blank exports
|