Commit 37d27479 37d27479142cabbfd25bee7bcfa197c7d3e638e9 by Nicolas Perriault

Merge pull request #210 from alfetopito/master

Encoding binary file download POST parameters
2 parents 27ce6e3d 24e0708b
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
314 if (typeof data === "object") { 314 if (typeof data === "object") {
315 var dataList = []; 315 var dataList = [];
316 for (var k in data) { 316 for (var k in data) {
317 dataList.push(escape(k) + "=" + escape(data[k].toString())); 317 dataList.push(encodeURIComponent(k) + "=" + encodeURIComponent(data[k].toString()));
318 } 318 }
319 dataString = dataList.join('&'); 319 dataString = dataList.join('&');
320 this.log("getBinary(): Using request data: '" + dataString + "'", "debug"); 320 this.log("getBinary(): Using request data: '" + dataString + "'", "debug");
......