mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
Missing percent-encoding of hashes (#) in returned URL #269
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JustAnotherArchivist on GitHub.
When uploading a file whose name contains a hash (
#), the returned URL also contains that symbol literally. This means that the returned URL will 404 although the upload itself was successful. The hash needs to be percent-encoded as%23instead so that clients don't treat the rest of the URL as a fragment.should produce
This happens regardless of whether you use a filename containing a hash with
--upload-fileor specify the filename in the URL likehttps://transfer.sh/foo%23bar(where the hash of course needs to be encoded as well so that curl doesn't strip it away).@JustAnotherArchivist commented on GitHub:
Oh, I see, didn't see that. We're running our own instance, but I guess the code isn't up-to-date then. Thanks!
@paolafrancesca commented on GitHub:
@JustAnotherArchivist it was fixed month ago on codebase. I have no control on version deployed on
https://tranfer.sh