Skip to content

Commit

Permalink
Do URL-Encode of custom data value of cmd:download's IFRAME src
Browse files Browse the repository at this point in the history
Now use `$.param` for make QueryString of downloading IFRAME `src`
  • Loading branch information
nao-pon committed May 17, 2013
1 parent 92b7c4f commit 7504bd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/commands/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ elFinder.prototype.commands.download = function() {
return dfrd.reject();
}

$.each(fm.options.customData || {}, function(k, v) {
cdata += '&'+k+'='+v;
});
cdata = $.param(fm.options.customData || {});
if (cdata) {
cdata = '&' + cdata;
}

base += base.indexOf('?') === -1 ? '?' : '&';

Expand Down

0 comments on commit 7504bd9

Please sign in to comment.