Skip to content
Snippets Groups Projects
Unverified Commit 4d53a526 authored by belzebub40k's avatar belzebub40k Committed by GitHub
Browse files

app: replace unencoded plus signs (+) before decoding (#147)

Fixes #146
parent 4da509aa
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}):{};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment