fix(frontend): URL Encode Username and Password (#9 - @AaronBenDaniel)

* add URI encoding to credentials

* chore(api): Comment on FastAPI's automatic URL Decode

---------

Co-authored-by: TheOnlyWayUp <hi@towu.dev>
This commit is contained in:
AaronBenDanielandTheOnlyWayUp authored and GitHub committed 2024-07-08 18:23:43 +05:30
1 parent b663448103
commit 0184c786ce
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
`/download/${story_id}?om=1` +
(download_images ? "&download_images=true" : "") +
(is_paid_story
? `&username=${credentials.username}&password=${credentials.password}`
? `&username=${encodeURIComponent(credentials.username)}&password=${encodeURIComponent(credentials.password)}`
: "");
</script>