Mastodon: Bug with URL handling?

Created on 24 Mar 2017  路  3Comments  路  Source: tootsuite/mastodon

When a URL is enclosed in angle brackets (<http://example.com>) the brackets are turned into character escapes before URL processing (&lt;http://example.com&gt;) and then the &gt ends up appended to the end of the url (&lt;<a href="http://example.com&gt">http://example.com&gt</a>;).

Most helpful comment

There is some general issue with escaping what gets passed into the href attribute.

In this thread: https://mastodon.social/@mulander/2066273

The URL:
http://undeadly.org/cgi?action=article&sid=20170409123528

renders a broken URL with the ampersand escaped:
http://undeadly.org/cgi?action=article&sid=20170409123528

All 3 comments

There is some general issue with escaping what gets passed into the href attribute.

In this thread: https://mastodon.social/@mulander/2066273

The URL:
http://undeadly.org/cgi?action=article&sid=20170409123528

renders a broken URL with the ampersand escaped:
http://undeadly.org/cgi?action=article&sid=20170409123528

Looks like this was closed in https://github.com/tootsuite/mastodon/pull/2138 and released in 1.2.2. I'm going to close this issue, but if you see the problem happening, please re-open. Thanks!

Confirmed working:
https://mastodon.social/@mulander/3967306

Thanks!

Was this page helpful?
0 / 5 - 0 ratings