WordPress Download Manager - Version 3.2.41

Version Description

  • 2022.05.04 =
  • Improved select2 ui
  • Fixed an issue with template path detection
  • Fixed the password validation issue with the password lock
  • Fixed ssl error issue with the QR code template tag
  • Fixed the file download issue for the files when file name starts with space
Download this release

Release Info

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

Code changes from version 3.2.40 to 3.2.41

assets/select2/css/select2.css CHANGED
@@ -13,7 +13,6 @@
13
  -webkit-user-select: none; }
14
  .select2-container .select2-selection--single .select2-selection__rendered {
15
  display: block;
16
- padding-left: 8px;
17
  padding-right: 20px;
18
  overflow: hidden;
19
  text-overflow: ellipsis;
@@ -23,7 +22,6 @@
23
  border: none;
24
  font-size: 1em; }
25
  .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
26
- padding-right: 8px;
27
  padding-left: 20px; }
28
  .select2-container .select2-selection--multiple {
29
  box-sizing: border-box;
@@ -49,7 +47,7 @@
49
  padding: 0;
50
  max-width: 100%;
51
  resize: none;
52
- height: 18px;
53
  vertical-align: bottom;
54
  font-family: sans-serif;
55
  overflow: hidden;
@@ -140,11 +138,14 @@
140
 
141
  .select2-container--default .select2-selection--single {
142
  background-color: #fff;
143
- border: 1px solid #aaa;
144
- border-radius: 4px; }
 
 
 
145
  .select2-container--default .select2-selection--single .select2-selection__rendered {
146
  color: #444;
147
- line-height: 28px; }
148
  .select2-container--default .select2-selection--single .select2-selection__clear {
149
  cursor: pointer;
150
  float: right;
@@ -155,10 +156,10 @@
155
  .select2-container--default .select2-selection--single .select2-selection__placeholder {
156
  color: #999; }
157
  .select2-container--default .select2-selection--single .select2-selection__arrow {
158
- height: 26px;
159
  position: absolute;
160
  top: 1px;
161
- right: 1px;
162
  width: 20px; }
163
  .select2-container--default .select2-selection--single .select2-selection__arrow b {
164
  border-color: #888 transparent transparent transparent;
@@ -191,11 +192,10 @@
191
 
192
  .select2-container--default .select2-selection--multiple {
193
  background-color: white;
194
- border: 1px solid #aaa;
195
- border-radius: 4px;
196
  cursor: text;
197
- padding-bottom: 5px;
198
- padding-right: 5px;
199
  position: relative; }
200
  .select2-container--default .select2-selection--multiple.select2-selection--clearable {
201
  padding-right: 25px; }
@@ -209,9 +209,9 @@
209
  right: 0;
210
  padding: 1px; }
211
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
212
- background-color: #e4e4e4;
213
- border: 1px solid #aaa;
214
- border-radius: 4px;
215
  box-sizing: border-box;
216
  display: inline-block;
217
  margin-left: 5px;
@@ -222,7 +222,8 @@
222
  max-width: 100%;
223
  overflow: hidden;
224
  text-overflow: ellipsis;
225
- vertical-align: bottom;
 
226
  white-space: nowrap; }
227
  .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
228
  cursor: default;
@@ -288,7 +289,13 @@
288
  border-bottom-right-radius: 0; }
289
 
290
  .select2-container--default .select2-search--dropdown .select2-search__field {
291
- border: 1px solid #aaa; }
 
 
 
 
 
 
292
 
293
  .select2-container--default .select2-search--inline .select2-search__field {
294
  background: transparent;
@@ -353,7 +360,7 @@
353
  border: 1px solid #5897fb; }
354
  .select2-container--classic .select2-selection--single .select2-selection__rendered {
355
  color: #444;
356
- line-height: 28px; }
357
  .select2-container--classic .select2-selection--single .select2-selection__clear {
358
  cursor: pointer;
359
  float: right;
@@ -497,7 +504,7 @@
497
  border-bottom-right-radius: 0; }
498
 
499
  .select2-container--classic .select2-search--dropdown .select2-search__field {
500
- border: 1px solid #aaa;
501
  outline: 0; }
502
 
503
  .select2-container--classic .select2-search--inline .select2-search__field {
13
  -webkit-user-select: none; }
14
  .select2-container .select2-selection--single .select2-selection__rendered {
15
  display: block;
 
16
  padding-right: 20px;
17
  overflow: hidden;
18
  text-overflow: ellipsis;
22
  border: none;
23
  font-size: 1em; }
24
  .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
 
25
  padding-left: 20px; }
26
  .select2-container .select2-selection--multiple {
27
  box-sizing: border-box;
47
  padding: 0;
48
  max-width: 100%;
49
  resize: none;
50
+ height: 12px;
51
  vertical-align: bottom;
52
  font-family: sans-serif;
53
  overflow: hidden;
138
 
139
  .select2-container--default .select2-selection--single {
140
  background-color: #fff;
141
+ border: 1px solid #D5D5D5;
142
+ border-radius: 3px;
143
+ height: 34px;
144
+ padding: 6px 12px;
145
+ }
146
  .select2-container--default .select2-selection--single .select2-selection__rendered {
147
  color: #444;
148
+ }
149
  .select2-container--default .select2-selection--single .select2-selection__clear {
150
  cursor: pointer;
151
  float: right;
156
  .select2-container--default .select2-selection--single .select2-selection__placeholder {
157
  color: #999; }
158
  .select2-container--default .select2-selection--single .select2-selection__arrow {
159
+ height: 32px;
160
  position: absolute;
161
  top: 1px;
162
+ right: 5px;
163
  width: 20px; }
164
  .select2-container--default .select2-selection--single .select2-selection__arrow b {
165
  border-color: #888 transparent transparent transparent;
192
 
193
  .select2-container--default .select2-selection--multiple {
194
  background-color: white;
195
+ border: 1px solid #d5d5d5;
196
+ border-radius: 3px;
197
  cursor: text;
198
+ padding: 4px 8px;
 
199
  position: relative; }
200
  .select2-container--default .select2-selection--multiple.select2-selection--clearable {
201
  padding-right: 25px; }
209
  right: 0;
210
  padding: 1px; }
211
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
212
+ background-color: #eeeeee;
213
+ border: 1px solid #d5d5d5;
214
+ border-radius: 2px;
215
  box-sizing: border-box;
216
  display: inline-block;
217
  margin-left: 5px;
222
  max-width: 100%;
223
  overflow: hidden;
224
  text-overflow: ellipsis;
225
+ vertical-align: middle;
226
+ font-size: 11px;
227
  white-space: nowrap; }
228
  .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
229
  cursor: default;
289
  border-bottom-right-radius: 0; }
290
 
291
  .select2-container--default .select2-search--dropdown .select2-search__field {
292
+ border: 1px solid #d5d5d5;
293
+ height: 16px;
294
+ line-height: 18px;
295
+ border-radius: 3px;
296
+ width: 100%;
297
+ margin: 0;
298
+ }
299
 
300
  .select2-container--default .select2-search--inline .select2-search__field {
301
  background: transparent;
360
  border: 1px solid #5897fb; }
361
  .select2-container--classic .select2-selection--single .select2-selection__rendered {
362
  color: #444;
363
+ }
364
  .select2-container--classic .select2-selection--single .select2-selection__clear {
365
  cursor: pointer;
366
  float: right;
504
  border-bottom-right-radius: 0; }
505
 
506
  .select2-container--classic .select2-search--dropdown .select2-search__field {
507
+ border: 1px solid #d5d5d5;
508
  outline: 0; }
509
 
510
  .select2-container--classic .select2-search--inline .select2-search__field {
assets/select2/css/select2.min.css CHANGED
@@ -1 +1 @@
1
- .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;margin-left:5px;padding:0;max-width:100%;resize:none;height:18px;vertical-align:bottom;font-family:sans-serif;overflow:hidden;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px;padding-right:0px}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:bold;height:20px;margin-right:10px;margin-top:5px;position:absolute;right:0;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;padding:0;padding-left:20px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-right:1px solid #aaa;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px;position:absolute;left:0;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus{background-color:#f1f1f1;color:#333;outline:none}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:grey}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
1
+ .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:0;font-size:1em}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:0;font-size:1em}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:0;font-size:100%;margin-top:5px;margin-left:5px;padding:0;max-width:100%;resize:none;height:12px;vertical-align:bottom;font-family:sans-serif;overflow:hidden;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button,.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #d5d5d5;border-radius:3px;height:34px;padding:6px 12px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px;padding-right:0}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:32px;position:absolute;top:1px;right:5px;width:20px}.select2-container--classic .select2-selection--single .select2-selection__arrow b,.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b,.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #d5d5d5;border-radius:3px;cursor:text;padding:4px 8px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:700;height:20px;margin-right:10px;margin-top:5px;position:absolute;right:0;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#eee;border:1px solid #d5d5d5;border-radius:2px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;padding:0 0 0 20px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:11px;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:0;border-right:1px solid #aaa;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:700;padding:0 4px;position:absolute;left:0;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{background-color:#f1f1f1;color:#333;outline:0}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #d5d5d5;height:16px;line-height:18px;border-radius:3px;width:100%;margin:0}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:0;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:0;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:0;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:0}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:0;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:700;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:0}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #d5d5d5;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:gray}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
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.40
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.40');
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.41
9
  Text Domain: download-manager
10
  Domain Path: /languages
11
  */
39
 
40
  global $WPDM;
41
 
42
+ define('WPDM_VERSION','3.2.41');
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: 5.9
7
  License: GPLv2 or later
8
- Stable tag: 3.2.40
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,13 @@ Check download stats and get a push notification when someone downloads, install
181
 
182
  == Changelog ==
183
 
 
 
 
 
 
 
 
184
  = 3.2.40 - 2022.04.12 =
185
  * Fixed an issue with the password reset form
186
 
5
  Requires at least: 5.3
6
  Tested up to: 5.9
7
  License: GPLv2 or later
8
+ Stable tag: 3.2.41
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.41 - 2022.05.04 =
185
+ * Improved select2 ui
186
+ * Fixed an issue with template path detection
187
+ * Fixed the password validation issue with the password lock
188
+ * Fixed ssl error issue with the QR code template tag
189
+ * Fixed the file download issue for the files when file name starts with space
190
+
191
  = 3.2.40 - 2022.04.12 =
192
  * Fixed an issue with the password reset form
193
 
src/Admin/views/metaboxes/attach-file/upload-file.php CHANGED
@@ -12,7 +12,7 @@ $afile = wpdm_valueof($afiles, 0);
12
  <div class="cfile" id="cfl" style="padding: 10px;border:2px solid #ddd;background: #ffffff;margin-bottom: 10px">
13
  <?php
14
  $filesize = "<em style='color: darkred'>( ".__("attached file is missing/deleted",'download-manager')." )</em>";
15
- $afile = trim($afile);
16
 
17
  $url = false;
18
  if($afile !=''){
12
  <div class="cfile" id="cfl" style="padding: 10px;border:2px solid #ddd;background: #ffffff;margin-bottom: 10px">
13
  <?php
14
  $filesize = "<em style='color: darkred'>( ".__("attached file is missing/deleted",'download-manager')." )</em>";
15
+ $afile = rtrim($afile);
16
 
17
  $url = false;
18
  if($afile !=''){
src/Admin/views/settings/basic.php CHANGED
@@ -54,8 +54,7 @@
54
  <div class="form-group">
55
  <label><?php echo __("File Browser Access:", "download-manager"); ?></label><br/>
56
  <input type="hidden" name="_wpdm_file_browser_access[]" value="[NONE]"/>
57
- <select style="width: 100%" name="_wpdm_file_browser_access[]" multiple="multiple"
58
- data-placeholder="<?php _e("Who will have access to server file browser", "download-manager"); ?>">
59
  <?php
60
 
61
  $currentAccess = maybe_unserialize(get_option('_wpdm_file_browser_access', array('administrator')));
@@ -88,10 +87,8 @@
88
  <div class="panel-body">
89
  <div class="form-group">
90
  <label><a name="liappid"></a><?php echo __("reCAPTCHA Site Key", "download-manager"); ?></label>
91
- <input type="text" class="form-control" name="_wpdm_recaptcha_site_key"
92
- value="<?php echo get_option('_wpdm_recaptcha_site_key'); ?>">
93
- <em>Register a new site for reCAPTCHA from <a target="_blank"
94
- href='https://www.google.com/recaptcha/admin#list'>here</a></em>
95
  </div>
96
  <div class="form-group">
97
  <label><a name="liappid"></a><?php echo __("reCAPTCHA Secret Key", "download-manager"); ?></label>
54
  <div class="form-group">
55
  <label><?php echo __("File Browser Access:", "download-manager"); ?></label><br/>
56
  <input type="hidden" name="_wpdm_file_browser_access[]" value="[NONE]"/>
57
+ <select style="width: 100%" name="_wpdm_file_browser_access[]" multiple="multiple" data-placeholder="<?php _e("Who will have access to server file browser", "download-manager"); ?>">
 
58
  <?php
59
 
60
  $currentAccess = maybe_unserialize(get_option('_wpdm_file_browser_access', array('administrator')));
87
  <div class="panel-body">
88
  <div class="form-group">
89
  <label><a name="liappid"></a><?php echo __("reCAPTCHA Site Key", "download-manager"); ?></label>
90
+ <input type="text" class="form-control" name="_wpdm_recaptcha_site_key" value="<?php echo get_option('_wpdm_recaptcha_site_key'); ?>">
91
+ <em>Register a new site for reCAPTCHA from <a target="_blank" href='https://www.google.com/recaptcha/admin#list'>here</a></em>
 
 
92
  </div>
93
  <div class="form-group">
94
  <label><a name="liappid"></a><?php echo __("reCAPTCHA Secret Key", "download-manager"); ?></label>
src/Package/PackageController.php CHANGED
@@ -153,7 +153,7 @@ class PackageController extends PackageTemplate {
153
  $post_vars['link_label'] = isset( $post_vars['link_label'] ) ? esc_attr( $post_vars['link_label'] ) : esc_attr__( "Download", "download-manager" );
154
  $post_vars['page_url'] = get_permalink( $post_vars['ID'] );
155
  $post_vars['page_link'] = "<a href='" . $post_vars['page_url'] . "'>{$post_vars['title']}</a>";
156
- $post_vars['page_url_qr'] = "<img class='wpdm-qr-code wpdm-qr-code{$post_vars['ID']}' style='max-width: 250px' src='http://chart.googleapis.com/chart?cht=qr&chs=450x450&choe=UTF-8&chld=H|0&chl={$post_vars['page_url']}' alt='{$post_vars['title']}' />";
157
 
158
 
159
  if ( ! isset( $post_vars['btnclass'] ) ) {
@@ -679,7 +679,7 @@ class PackageController extends PackageTemplate {
679
  $files = array();
680
  }
681
  foreach ( $files as &$file ) {
682
- $file = trim( $file );
683
  }
684
  if ( $include_dir ) {
685
  $package_dir = get_post_meta( $ID, '__wpdm_package_dir', true );
153
  $post_vars['link_label'] = isset( $post_vars['link_label'] ) ? esc_attr( $post_vars['link_label'] ) : esc_attr__( "Download", "download-manager" );
154
  $post_vars['page_url'] = get_permalink( $post_vars['ID'] );
155
  $post_vars['page_link'] = "<a href='" . $post_vars['page_url'] . "'>{$post_vars['title']}</a>";
156
+ $post_vars['page_url_qr'] = "<img class='wpdm-qr-code wpdm-qr-code{$post_vars['ID']}' style='max-width: 250px' src='https://chart.googleapis.com/chart?cht=qr&chs=450x450&choe=UTF-8&chld=H|0&chl={$post_vars['page_url']}' alt='{$post_vars['title']}' />";
157
 
158
 
159
  if ( ! isset( $post_vars['btnclass'] ) ) {
679
  $files = array();
680
  }
681
  foreach ( $files as &$file ) {
682
+ $file = rtrim( $file );
683
  }
684
  if ( $include_dir ) {
685
  $package_dir = get_post_meta( $ID, '__wpdm_package_dir', true );
src/Package/PackageLocks.php CHANGED
@@ -54,7 +54,7 @@ class PackageLocks
54
 
55
  function validatePassword()
56
  {
57
- $password = wpdm_query_var('password', ['validate' => 'html']);
58
  $packageID = wpdm_query_var('__wpdm_ID', ['validate' => 'int']);
59
  $passwords = WPDM()->package->isPasswordProtected($packageID);
60
  $passwordUsage = maybe_unserialize(get_post_meta($packageID, '__wpdm_password_usage', true));
54
 
55
  function validatePassword()
56
  {
57
+ $password = sanitize_text_field($_REQUEST['password']);
58
  $packageID = wpdm_query_var('__wpdm_ID', ['validate' => 'int']);
59
  $passwords = WPDM()->package->isPasswordProtected($packageID);
60
  $passwordUsage = maybe_unserialize(get_post_meta($packageID, '__wpdm_password_usage', true));
src/__/FileSystem.php CHANGED
@@ -260,7 +260,7 @@ class FileSystem
260
  return false;
261
  }
262
  foreach ($files as $file) {
263
- $file = trim($file);
264
  $filename = wp_basename($file);
265
  $file = WPDM()->fileSystem->absPath($file);
266
  /*if (file_exists(UPLOAD_DIR . $file)) {
260
  return false;
261
  }
262
  foreach ($files as $file) {
263
+ $file = rtrim($file);
264
  $filename = wp_basename($file);
265
  $file = WPDM()->fileSystem->absPath($file);
266
  /*if (file_exists(UPLOAD_DIR . $file)) {
src/__/Template.php CHANGED
@@ -50,9 +50,10 @@ class Template
50
  }
51
 
52
  function fetch($template, $tpldir = '' , $fallback = ''){
53
- $template = self::locate($template, $tpldir);
54
  if(is_array($this->vars))
55
  extract($this->vars);
 
56
  ob_start();
57
  include $template;
58
  return ob_get_clean();
50
  }
51
 
52
  function fetch($template, $tpldir = '' , $fallback = ''){
53
+ $template = self::locate($template, $tpldir);
54
  if(is_array($this->vars))
55
  extract($this->vars);
56
+ if(!$template) return "";
57
  ob_start();
58
  include $template;
59
  return ob_get_clean();