1
0
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:
Marina Glancy 2014-10-09 10:54:46 +08:00
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;
}