From 2a0b5339081a439a8c5ec1f2b9cd28b63fd3fa49 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 5 Jul 2016 16:41:25 -0700 Subject: [PATCH] UTF-8 form input vs. xmlhttp, #71347 --- httemplate/elements/xmlhttp.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) { -- 2.11.0