diff --git a/frontend/src/api/pub.js b/frontend/src/api/pub.js index 99642309..bf42438c 100644 --- a/frontend/src/api/pub.js +++ b/frontend/src/api/pub.js @@ -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) {