summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-11-12 13:23:07 +0000
committerThomas BrĂ¼derli2007-11-12 13:23:07 +0000
commitd049d8fb7aed5a57aeec452035bda610899f78a4 (patch)
treeffdfeb3d1d11d2083c9d5cbbad3c1bb18b7bd55a /itjs
parente55d5bb64688961813d47812ff642cdbffb10375 (diff)
downloaditools-d049d8fb7aed5a57aeec452035bda610899f78a4.tar.gz
itools-d049d8fb7aed5a57aeec452035bda610899f78a4.tar.bz2
itools-d049d8fb7aed5a57aeec452035bda610899f78a4.zip
Use it_url_encode in it_loader; don't escape semicolons to save space
Diffstat (limited to 'itjs')
-rw-r--r--itjs/it.js2
-rw-r--r--itjs/loader.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/itjs/it.js b/itjs/it.js
index a43ba3a..5b914be 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -173,5 +173,5 @@ function it_url_encode(str)
{
var result = window.encodeURIComponent ? encodeURIComponent(str) : escape(str).replace(/\+/g, "%2B");
- return result.replace(/%20/gi, "+").replace(/%2C/gi, ",").replace(/%28/gi, "(").replace(/%29/gi, ")");
+ return result.replace(/%20/gi, "+").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%28/gi, "(").replace(/%29/gi, ")");
}
diff --git a/itjs/loader.js b/itjs/loader.js
index de6ae9d..90463a2 100644
--- a/itjs/loader.js
+++ b/itjs/loader.js
@@ -157,7 +157,7 @@ post: function(baseurl, data)
if (typeof data == 'object')
{
for (var k in data)
- this.post_data += (this.post_data ? "&" : "") + k + "=" + escape(data[k]);
+ this.post_data += (this.post_data ? "&" : "") + k + "=" + it_url_encode(data[k]);
}
else
this.post_data = data;