From cc30034a69824c29ebfc49e88338a422f3c25542 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 9 Oct 2014 10:54:46 +0800 Subject: [PATCH] MDL-47583 tinymce_managefiles: correctly decode filename --- lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js b/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js index f3bb3e94a1a..5b3c102043a 100644 --- a/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js +++ b/lib/editor/tinymce/plugins/managefiles/tinymce/editor_plugin.js @@ -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; }