Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)
https://joinplu.me
GNU Affero General Public License v3.0
2.08k stars 129 forks source link

URL-encoded path resolves to a 404 #1116

Open mathstuf opened 6 months ago

mathstuf commented 6 months ago

Seen here: https://www.reddit.com/r/rust/comments/197811x/the_bane_of_my_existence_supporting_both_async/khz8yre/?context=3

It looks like Reddit encodes the ~ in the URL as %7E. The browser renders that as ~ everywhere. It ends up with a 404 because the %7E is not decoded before looking up routes.

ahangarha commented 3 months ago

I experience this issue but within Plume. If you add a link to another post with a full URL (so it includes ~), the same thing happens.

The issue might be caused by the markdown parser.