Skip to content

Commit

Permalink
Merge pull request #96 from vaceslav/master
Browse files Browse the repository at this point in the history
Resolve issue with POST values contains sign "="
  • Loading branch information
johnculviner committed Apr 27, 2015
2 parents 67b7c5d + c083609 commit c6e50e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Scripts/jquery.fileDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ $.extend({

var kvp = this.split("=");

//Issue: When value contains sign '=' then the kvp array does have more than 2 items. We have to join value back
var k = kvp[0];
kvp.shift();
var v = kvp.join("=");
kvp = [k, v];

var key = settings.encodeHTMLEntities ? htmlSpecialCharsEntityEncode(decodeURIComponent(kvp[0])) : decodeURIComponent(kvp[0]);
if (key) {
var value = settings.encodeHTMLEntities ? htmlSpecialCharsEntityEncode(decodeURIComponent(kvp[1])) : decodeURIComponent(kvp[1]);
Expand Down

0 comments on commit c6e50e2

Please sign in to comment.