[openstreetmap/openstreetmap-website] Refactor social sharing helper (PR #5417)
Anton Khorev
notifications at github.com
Wed Dec 18 23:52:29 UTC 2024
Looks like `&` gets unescaped in mastodonshare.com's redirect location.
Request headers:
```
GET /?text=A%26B&url=http%3A%2F%2F127.0.0.1%3A3000%2Fuser%2Ffakeuser1%2Fdiary%2F86 HTTP/1.1
Host: mastodonshare.com
...
```
Response headers:
```
HTTP/1.1 302 Found
...
Location: https://en.osm.town/share?text=A&B%0A%0Ahttp://127.0.0.1:3000/user/fakeuser1/diary/86
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5417#issuecomment-2552483990
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5417/c2552483990 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241218/33bd4002/attachment-0001.htm>
More information about the rails-dev
mailing list