From 913c9a6b46be0cd56b794b7f23dd5141939c0a0f Mon Sep 17 00:00:00 2001 From: Ion Spicica Date: Fri, 16 Nov 2018 12:02:34 +0200 Subject: [PATCH] Update js_bridge.js when we transmit parameters that contain space we need to encode uri --- templates/jsglue/js_bridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/jsglue/js_bridge.js b/templates/jsglue/js_bridge.js index 9d48075..7f080a4 100644 --- a/templates/jsglue/js_bridge.js +++ b/templates/jsglue/js_bridge.js @@ -80,7 +80,7 @@ var {{ namespace }} = new(function () { if (is_absolute) { return scheme + "://" + location.host + url; } else { - return url; + return encodeURI(url); } } }