diff options
author | Thomas BrĂ¼derli | 2007-11-12 13:23:07 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-11-12 13:23:07 +0000 |
commit | d049d8fb7aed5a57aeec452035bda610899f78a4 (patch) | |
tree | ffdfeb3d1d11d2083c9d5cbbad3c1bb18b7bd55a /itjs | |
parent | e55d5bb64688961813d47812ff642cdbffb10375 (diff) | |
download | itools-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.js | 2 | ||||
-rw-r--r-- | itjs/loader.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |