Import users from CSV with meta - Version 1.12.1

Version Description

  • Filter added to avoid script inside values of each cells to prevent XSS attacks, thanks for reporting Slawek Zytko
Download this release

Release Info

Developer carazo
Plugin Icon 128x128 Import users from CSV with meta
Version 1.12.1
Comparing to
See all releases

Code changes from version 1.12 to 1.12.1

import-users-from-csv-with-meta.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
- Version: 1.12
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
3
  Plugin Name: Import users from CSV with meta
4
  Plugin URI: https://www.codection.com
5
  Description: This plugins allows to import users using CSV files to WP database automatically
6
+ Version: 1.12.1
7
  Author: codection
8
  Author URI: https://codection.com
9
  License: GPL2
importer.php CHANGED
@@ -111,7 +111,7 @@ function acui_import_users( $file, $form_data, $attach_id = 0, $is_cron = false,
111
  $data = $data[0];
112
 
113
  foreach ( $data as $key => $value ){
114
- $data[ $key ] = trim( $value );
115
  }
116
 
117
  for( $i = 0; $i < count($data); $i++ ){
111
  $data = $data[0];
112
 
113
  foreach ( $data as $key => $value ){
114
+ $data[ $key ] = preg_replace( '/<script\b[^>]*>(.*?)<\/script>/is', '', trim( $value ) );
115
  }
116
 
117
  for( $i = 0; $i < count($data); $i++ ){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://paypal.me/codection
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.0.0
7
- Stable tag: 1.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -71,8 +71,11 @@ Plugin will automatically detect:
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.12 =
75
- * Plugin can now manage mail templates for managing mails which are sent to users thanks to Joel Frankwick for the support and testing
76
 
77
  = 1.11.3.17 =
78
  * Documentation improved with some notes about roles management thanks to @stephenfourie (https://wordpress.org/support/topic/user-role-always-set-as-administrator/)
4
  Tags: csv, import, importer, meta data, meta, user, users, user meta, editor, profile, custom, fields, delimiter, update, insert
5
  Requires at least: 3.4
6
  Tested up to: 5.0.0
7
+ Stable tag: 1.12.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
71
 
72
  == Changelog ==
73
 
74
+ = 1.12.1 =
75
+ * Filter added to avoid script inside values of each cells to prevent XSS attacks, thanks for reporting Slawek Zytko
76
+
77
  = 1.12 =
78
+ * Plugin can now manage mail templates for managing mails which are sent to users
79
 
80
  = 1.11.3.17 =
81
  * Documentation improved with some notes about roles management thanks to @stephenfourie (https://wordpress.org/support/topic/user-role-always-set-as-administrator/)