Fix encoding issue on password for shared files.

This commit is contained in:
Nat Puch 2021-12-08 22:27:27 +01:00
parent a078f0b787
commit 18c9282cd1

View File

@ -5,7 +5,7 @@ export async function fetch(url, password = "") {
url = removePrefix(url);
const res = await fetchURL(`/api/public/share${url}`, {
headers: { "X-SHARE-PASSWORD": password },
headers: { "X-SHARE-PASSWORD": unescape(encodeURIComponent(password)) },
});
if (res.status === 200) {