fix: download path encoding file paths (#5655)

This commit is contained in:
Jagadam Dinesh Reddy 2026-01-03 13:23:21 +05:30 committed by GitHub
parent b8151a038a
commit ffa893e9ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,12 +41,12 @@ export function download(
let url = `${baseURL}/api/public/dl/${hash}`; let url = `${baseURL}/api/public/dl/${hash}`;
if (files.length === 1) { if (files.length === 1) {
url += encodeURIComponent(files[0]) + "?"; url += files[0] + "?";
} else { } else {
let arg = ""; let arg = "";
for (const file of files) { for (const file of files) {
arg += encodeURIComponent(file) + ","; arg += file + ",";
} }
arg = arg.substring(0, arg.length - 1); arg = arg.substring(0, arg.length - 1);