Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward slashes in hashes and persistent URLs #590

Open
richardofsussex opened this issue Aug 29, 2024 · 0 comments
Open

Forward slashes in hashes and persistent URLs #590

richardofsussex opened this issue Aug 29, 2024 · 0 comments

Comments

@richardofsussex
Copy link

The current hashing strategy leads to hashes in persistent URLs which contain '/', e.g. https://beta.freebmd.org.uk/entry-information/7y9Nv8Wqq9ohz/mLMUuP4A/hash. Any such URL will fail to dereference correctly, giving a "Page not Found" error. URLs without '/' resolve fine (within the beta domain): e.g. https://beta.freebmd.org.uk/entry-information/eHreZkQLWo95XP7RDwz+ww/hash

We need either to modify the hashing strategy so that it doesn't create hashes containing '/', or refine the way these URLs are analysed by Rails so that the hash is passed through unaltered.

I tried URL-encoding the '/' within the hash as '%2F' - this doesn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant