From 4d53a52662580c862c35bf09367b3e955dc2d6d8 Mon Sep 17 00:00:00 2001
From: belzebub40k <belzebub40k@users.noreply.github.com>
Date: Thu, 27 Oct 2022 23:36:50 +0200
Subject: [PATCH] app: replace unencoded plus signs (+) before decoding (#147)

Fixes #146
---
 app.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app.js b/app.js
index 4f3edcf..0316a67 100644
--- a/app.js
+++ b/app.js
@@ -234,7 +234,7 @@ var firmwarewizard = function() {
     function parseURLasJSON() {
       var search = location.search.substring(1);
       return search ? JSON.parse(
-        '{"' + search.replace(/&/g, '","').replace(/=/g,'":"') + '"}',
+        '{"' + search.replace(/&/g, '","').replace(/=/g,'":"').replace(/\+/g,'%20') + '"}',
         function(key, value) {
           return (key=== '') ? value:decodeURIComponent(value);
         }):{};
-- 
GitLab