WordPress Download Manager - Version 3.2.30

Version Description

  • 2021.12.27 =
  • Improved input sanitization options
Download this release

Release Info

Developer codename065
Plugin Icon 128x128 WordPress Download Manager
Version 3.2.30
Comparing to
See all releases

Code changes from version 3.2.29 to 3.2.30

Files changed (3) hide show
  1. download-manager.php +2 -2
  2. readme.txt +4 -1
  3. src/__/__.php +4 -2
download-manager.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.wpdownloadmanager.com/purchases/
5
  Description: Manage, Protect and Track file downloads, and sell digital products from your WordPress site. A complete digital asset management solution.
6
  Author: W3 Eden, Inc.
7
  Author URI: https://www.wpdownloadmanager.com/
8
- Version: 3.2.29
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
@@ -38,7 +38,7 @@ use WPDM\Widgets\WidgetController;
38
 
39
  global $WPDM;
40
 
41
- define('WPDM_VERSION','3.2.29');
42
 
43
  define('WPDM_TEXT_DOMAIN','download-manager');
44
 
5
  Description: Manage, Protect and Track file downloads, and sell digital products from your WordPress site. A complete digital asset management solution.
6
  Author: W3 Eden, Inc.
7
  Author URI: https://www.wpdownloadmanager.com/
8
+ Version: 3.2.30
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
38
 
39
  global $WPDM;
40
 
41
+ define('WPDM_VERSION','3.2.30');
42
 
43
  define('WPDM_TEXT_DOMAIN','download-manager');
44
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: download manager, document management, file manager, digital store, ecomme
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
  License: GPLv2 or later
8
- Stable tag: 3.2.29
9
 
10
 
11
  This File Management & Digital Store plugin will help you to control file downloads & sell digital products from your WP site.
@@ -181,6 +181,9 @@ Check download stats and get a push notification when someone downloads, install
181
 
182
  == Changelog ==
183
 
 
 
 
184
  = 3.2.29 - 2021.12.24 =
185
  * Fixed an undefined index notice on download page
186
 
5
  Requires at least: 5.3
6
  Tested up to: 5.8
7
  License: GPLv2 or later
8
+ Stable tag: 3.2.30
9
 
10
 
11
  This File Management & Digital Store plugin will help you to control file downloads & sell digital products from your WP site.
181
 
182
  == Changelog ==
183
 
184
+ = 3.2.30 - 2021.12.27 =
185
+ * Improved input sanitization options
186
+
187
  = 3.2.29 - 2021.12.24 =
188
  * Fixed an undefined index notice on download page
189
 
src/__/__.php CHANGED
@@ -183,11 +183,13 @@ class __
183
  $_var = explode("/", $var);
184
  if (count($_var) > 1) {
185
  foreach ($_var as $key) {
186
- $val = $_REQUEST[$key] ?? false;
 
187
  }
188
  } else {
189
  $default = $default ? $default : (isset($params['default']) ? $params['default'] : null);
190
- $val = $_REQUEST[$var] ?? null;
 
191
  if(!$val)
192
  $val = $wp_query->query_vars[$var] ?? $default;
193
  }
183
  $_var = explode("/", $var);
184
  if (count($_var) > 1) {
185
  foreach ($_var as $key) {
186
+ $key = sanitize_text_field($key);
187
+ $val = isset($_REQUEST[$key]) ? sanitize_textarea_field($_REQUEST[$key]) : false;
188
  }
189
  } else {
190
  $default = $default ? $default : (isset($params['default']) ? $params['default'] : null);
191
+ $var = sanitize_text_field($var);
192
+ $val = isset($_REQUEST[$var]) ? sanitize_textarea_field($_REQUEST[$var]) : null;
193
  if(!$val)
194
  $val = $wp_query->query_vars[$var] ?? $default;
195
  }