mirror of
https://github.com/versity/versitygw.git
synced 2026-07-02 16:54:25 +00:00
a5fc7c1ee5
window.location.hash returns the hash percent-encoded by the browser, so a prefix like "X Y/" is read back as "X%20Y/" (literal %20). Without decoding, all subsequent operations (list, upload, create folder) used the encoded string, causing the server to look for a directory named "X%20Y/" instead of "X Y/" — resulting in empty listings and uploads landing in a newly created "X%20Y/" directory. Fix by calling decodeURIComponent() on the hash before splitting into bucket and prefix parts. Fixes #2098