Skip to content

Commit

Permalink
Fix double encoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
okonomiyaki3000 committed Aug 26, 2015
1 parent b3aab7b commit 72ce0cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions media/media/js/popup-imagemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
{
var folder = this.getImageFolder(),
$form = $('#uploadForm'),
portString = '',
i, l, a, q;
portString = '', a, q;

// Update the frame url
this.frameurl = this.frame.location.href;
Expand Down Expand Up @@ -258,12 +257,12 @@
option: 'com_media',
view: 'imagesList',
tmpl: 'component',
folder: folder,
asset: asset,
author: author
};

this.frameurl = 'index.php?' + $.param(qs);
// Don't run folder through params because / will end up double encoded.
this.frameurl = 'index.php?' + $.param(qs) + '&folder=' + folder;
this.frame.location.href = this.frameurl;
},

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 72ce0cf

Please sign in to comment.