From b57a6509e14a3f63c6d64d6ff715b45278adce25 Mon Sep 17 00:00:00 2001 From: Julian Labus <julian@labus-online.de> Date: Fri, 4 Jan 2019 07:51:15 +0100 Subject: [PATCH] encode/decode special characters in image names --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index f2d06b8..f014156 100644 --- a/app.js +++ b/app.js @@ -353,7 +353,7 @@ var firmwarewizard = function() { } function parseFilePath(match, basePath, filename, branch) { - var location = basePath + filename; + var location = basePath + encodeURIComponent(filename); var devices = vendormodels_reverse[match]; if (!(devices instanceof Array) || devices.length != 1) { @@ -1024,7 +1024,7 @@ var firmwarewizard = function() { do { hrefMatch = reLink.exec(data); if (hrefMatch) { - var href = hrefMatch[1]; + var href = decodeURIComponent(hrefMatch[1]); if (ignoreFileName(href)) { continue; } -- GitLab