Version Description
- 2021.12.24 =
- Fixed an undefined index notice on download page
Download this release
Release Info
Developer | codename065 |
Plugin | WordPress Download Manager |
Version | 3.2.29 |
Comparing to | |
See all releases |
Code changes from version 3.2.28 to 3.2.29
- download-manager.php +2 -2
- readme.txt +4 -1
- src/__/__.php +4 -5
- src/wpdm-start-download.php +2 -1
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.
|
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.
|
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.29
|
9 |
Text Domain: download-manager
|
10 |
Domain Path: /languages
|
11 |
*/
|
38 |
|
39 |
global $WPDM;
|
40 |
|
41 |
+
define('WPDM_VERSION','3.2.29');
|
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.
|
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.28 - 2021.12.24 =
|
185 |
* Fixed several input sanitization issues
|
186 |
|
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 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 3.2.29 - 2021.12.24 =
|
185 |
+
* Fixed an undefined index notice on download page
|
186 |
+
|
187 |
= 3.2.28 - 2021.12.24 =
|
188 |
* Fixed several input sanitization issues
|
189 |
|
src/__/__.php
CHANGED
@@ -182,15 +182,14 @@ class __
|
|
182 |
|
183 |
$_var = explode("/", $var);
|
184 |
if (count($_var) > 1) {
|
185 |
-
$val = $_REQUEST;
|
186 |
foreach ($_var as $key) {
|
187 |
-
$val =
|
188 |
}
|
189 |
} else {
|
190 |
$default = $default ? $default : (isset($params['default']) ? $params['default'] : null);
|
191 |
-
$val =
|
192 |
if(!$val)
|
193 |
-
$val =
|
194 |
}
|
195 |
$validate = is_string($params) ? $params : '';
|
196 |
$validate = is_array($params) && isset($params['validate']) ? $params['validate'] : $validate;
|
@@ -449,7 +448,7 @@ class __
|
|
449 |
if(!check_ajax_referer($nonce_key, $nonce_var, false))
|
450 |
wp_send_json(['success' => false, 'message' => esc_attr__( 'Referer verification failed', WPDM_TEXT_DOMAIN )]);
|
451 |
}
|
452 |
-
if(!wp_verify_nonce(
|
453 |
if(!current_user_can($access_level)) wp_send_json(['success' => false, 'message' => __( "You are not allowed to change settings!", "download-manager" )]);
|
454 |
}
|
455 |
|
182 |
|
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 |
}
|
194 |
$validate = is_string($params) ? $params : '';
|
195 |
$validate = is_array($params) && isset($params['validate']) ? $params['validate'] : $validate;
|
448 |
if(!check_ajax_referer($nonce_key, $nonce_var, false))
|
449 |
wp_send_json(['success' => false, 'message' => esc_attr__( 'Referer verification failed', WPDM_TEXT_DOMAIN )]);
|
450 |
}
|
451 |
+
if(!wp_verify_nonce(__::query_var($nonce_var), $nonce_key)) wp_send_json(['success' => false, 'message' => __('Security token is expired! Refresh the page and try again.', 'download-manager')]);
|
452 |
if(!current_user_can($access_level)) wp_send_json(['success' => false, 'message' => __( "You are not allowed to change settings!", "download-manager" )]);
|
453 |
}
|
454 |
|
src/wpdm-start-download.php
CHANGED
@@ -30,7 +30,8 @@ do_action("wpdm_onstart_download", $package);
|
|
30 |
$speed = (int)get_option('__wpdm_download_speed', 10240); //in KB - default 10 MB
|
31 |
$speed = $speed > 0 ? $speed : 10240;
|
32 |
$speed = apply_filters('wpdm_download_speed', $speed);
|
33 |
-
$user = get_user_by('id', $package['
|
|
|
34 |
$user_upload_dir = UPLOAD_DIR . $user->user_login . '/';
|
35 |
|
36 |
$_content_dir = str_replace('\\','/',WP_CONTENT_DIR);
|
30 |
$speed = (int)get_option('__wpdm_download_speed', 10240); //in KB - default 10 MB
|
31 |
$speed = $speed > 0 ? $speed : 10240;
|
32 |
$speed = apply_filters('wpdm_download_speed', $speed);
|
33 |
+
$user = get_user_by('id', $package['author']);
|
34 |
+
|
35 |
$user_upload_dir = UPLOAD_DIR . $user->user_login . '/';
|
36 |
|
37 |
$_content_dir = str_replace('\\','/',WP_CONTENT_DIR);
|