Commit 24e0708b 24e0708bae743b33704c737520391ba228484009 by Leandro Boscariol

Changed escape to encodeURIComponent for downloading binaries via POST

1 parent 5ed461e8
...@@ -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");
......