summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-07-05 16:41:25 -0700
committerMark Wells <mark@freeside.biz>2016-07-06 12:49:58 -0700
commitf8970936c24e6c8b21d9178ff8ae12d4182ddd76 (patch)
tree88517275e41c73b4652b844ccd1b087b606f2781
parent532062e938736a53754271dbebfb1a6d78afaf7e (diff)
UTF-8 form input vs. xmlhttp, #71347
-rw-r--r--httemplate/elements/xmlhttp.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html
index 2f4f0d555..e70871169 100644
--- a/httemplate/elements/xmlhttp.html
+++ b/httemplate/elements/xmlhttp.html
@@ -44,7 +44,7 @@ my %initialized = ();#won't work if component is "preloaded"... so don't do that
len = args.length - 1;
}
for (var i = 0; i < len; i++)
- content = content + "&arg=" + escape(args[i]);
+ content = content + "&arg=" + encodeURIComponent(args[i]);
content = content.replace( /[+]/g, '%2B'); // fix unescaped plus signs
if ( '<%$method%>' == 'GET' ) {