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}`;
if (files.length === 1) {
url += encodeURIComponent(files[0]) + "?";
url += files[0] + "?";
} else {
let arg = "";
for (const file of files) {
arg += encodeURIComponent(file) + ",";
arg += file + ",";
}
arg = arg.substring(0, arg.length - 1);