mirror of
https://github.com/moodle/moodle.git
synced 2025-06-14 16:04:05 +02:00
MDL-47583 tinymce_managefiles: correctly decode filename
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user