WordPress Download Manager - Version 3.2.46

Version Description

  • 2022.06.29 =
  • Fixed input filtering issue with the Insert URL option
Download this release

Release Info

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

Code changes from version 3.2.45 to 3.2.46

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.45
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
@@ -39,7 +39,7 @@ use WPDM\Widgets\WidgetController;
39
 
40
  global $WPDM;
41
 
42
- define('WPDM_VERSION','3.2.44');
43
 
44
  define('WPDM_TEXT_DOMAIN','download-manager');
45
 
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.46
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
39
 
40
  global $WPDM;
41
 
42
+ define('WPDM_VERSION','3.2.46');
43
 
44
  define('WPDM_TEXT_DOMAIN','download-manager');
45
 
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: 6.0
7
  License: GPLv2 or later
8
- Stable tag: 3.2.45
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.45 - 2022.06.23 =
185
  * Internal codebase update
186
 
5
  Requires at least: 5.3
6
  Tested up to: 6.0
7
  License: GPLv2 or later
8
+ Stable tag: 3.2.46
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.46 - 2022.06.29 =
185
+ * Fixed input filtering issue with the Insert URL option
186
+
187
  = 3.2.45 - 2022.06.23 =
188
  * Internal codebase update
189
 
src/Admin/views/metaboxes/attach-file/remote-url.php CHANGED
@@ -15,7 +15,9 @@ if(!defined("ABSPATH")) die("Shit happens!");
15
  var file = jQuery('#rurl').val();
16
  var filename = file;
17
  jQuery('#rurl').val('');
18
- if(file == ''){
 
 
19
  alert("Invalid url");
20
  return false;
21
  }
15
  var file = jQuery('#rurl').val();
16
  var filename = file;
17
  jQuery('#rurl').val('');
18
+
19
+ let regex = new RegExp("^(ftp:\/\/|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$");
20
+ if(!regex.test(file)){
21
  alert("Invalid url");
22
  return false;
23
  }