Skip to content

Commit

Permalink
MDL-47583 tinymce_managefiles: correctly decode filename
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Oct 9, 2014
1 parent 29507f2 commit 3ef132f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3ef132f

Please sign in to comment.