mirror of
https://github.com/moodle/moodle.git
synced 2025-05-08 01:05:48 +02:00
MDL-47583 tinymce_managefiles: correctly decode filename
This commit is contained in:
parent
6597413d41
commit
c84d8cc452
@ -83,7 +83,7 @@
|
||||
patt = new RegExp(base.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + "(.+?)[\\?\"']", 'gm'),
|
||||
arr = [], match, filename;
|
||||
while ((match = patt.exec(text)) !== null) {
|
||||
filename = unescape(match[1]);
|
||||
filename = decodeURI(match[1]);
|
||||
if (arr.indexOf(filename) === -1) {
|
||||
arr[arr.length] = filename;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user