fix LC2 flashrom

This commit is contained in:
zefie
2025-08-13 15:28:39 -04:00
parent 8231441c37
commit 92f4e723bc
3 changed files with 4 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
const minisrv_service_file = true;
if (request_headers.query.path) {
let url = service_name + ":/get-lc2-page?path=" + request_headers.query.path;
let url = service_name + ":/get-lc2-page?path=" + encodeURIComponent(request_headers.query.path);
const romtype = session_data.get("wtv-client-rom-type");
if (romtype == "bf0app") {
url = "client:updateflash?ipaddr=" + minisrv_config.services[service_name].host + "&port=" + minisrv_config.services[service_name].port + "&path=" + encodeURIComponent(service_name + ":/" + request_headers.query.path);