Skip to content

Commit

Permalink
Fix folder browsing and file upload that broke in 3.8.8 due to escapi…
Browse files Browse the repository at this point in the history
…ng (#20586)

* Fix de-escaping of slash in folder name

* code style

* Update popup-imagemanager.js
  • Loading branch information
Phil Taylor authored and Michael Babker committed May 28, 2018
1 parent 66debe9 commit a8d5f7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion media/media/js/popup-imagemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
*/
getImageFolder: function ()
{
return this.getQueryObject(this.frame.location.search.substring(1)).folder;
return this.getQueryObject(this.frame.location.search.substring(1)).folder.replace(/%2F/gi, "/");
},

/**
Expand Down Expand Up @@ -178,6 +178,7 @@
*/
setFolder: function (folder, asset, author)
{
folder = folder.replace(/%2F/gi, "/");
for (var i = 0, l = this.folderlist.length; i < l; i++)
{
if (folder == this.folderlist.options[i].value)
Expand Down
2 changes: 1 addition & 1 deletion media/media/js/popup-imagemanager.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8d5f7d

Please sign in to comment.