Fix encoding issue on password for shared files.
This commit is contained in:
parent
a078f0b787
commit
18c9282cd1
@ -5,7 +5,7 @@ export async function fetch(url, password = "") {
|
|||||||
url = removePrefix(url);
|
url = removePrefix(url);
|
||||||
|
|
||||||
const res = await fetchURL(`/api/public/share${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) {
|
if (res.status === 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user