From 18c9282cd13463d643731475cd727508660338fd Mon Sep 17 00:00:00 2001 From: Nat Puch Date: Wed, 8 Dec 2021 22:27:27 +0100 Subject: [PATCH] Fix encoding issue on password for shared files. --- frontend/src/api/pub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {