From 440c7738fd6ed21aad36af0bda081bfbff4336dc Mon Sep 17 00:00:00 2001 From: Capitaine Date: Tue, 17 Dec 2013 18:14:57 +0100 Subject: [PATCH] Spaces could be encoded as '+' instead '%20' --- client/src/index.html.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/index.html.tmpl b/client/src/index.html.tmpl index aeed33d..d3e3d46 100644 --- a/client/src/index.html.tmpl +++ b/client/src/index.html.tmpl @@ -350,7 +350,7 @@ var query = window.location.search.substring(1); var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { - var pair = vars[i].split('='); + var pair = vars[i].replace(/\+/g, '%20').split('='); if (decodeURIComponent(pair[0]) == variable) { return decodeURIComponent(pair[1]); } -- 2.25.1