Skip to content
Snippets Groups Projects
Commit b57a6509 authored by Julian Labus's avatar Julian Labus Committed by David Bauer
Browse files

encode/decode special characters in image names

parent 006d9bec
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment