update escape and unescape to encodeURIComponent and decodeURIComponent due to depreciation

This commit is contained in:
zefie
2023-11-10 15:34:16 -05:00
parent 6388110e09
commit 2be836784d
21 changed files with 1012 additions and 55 deletions

View File

@@ -42,7 +42,7 @@ async function processLC2DownloadPage(flashrom_info, headers, numparts = null) {
}
if (!flashrom_info.is_last_part) {
flashrom_info.next_rompath = request_headers.request_url.replace(escape(request_headers.query.path), escape(flashrom_info.next_rompath.replace(service_name+":/","")));
flashrom_info.next_rompath = request_headers.request_url.replace(encodeURIComponent(request_headers.query.path), encodeURIComponent(flashrom_info.next_rompath.replace(service_name+":/","")));
}
headers = `200 OK