cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.99k stars 258 forks source link

URL preview Rickrolling #2063

Open bkil opened 4 days ago

bkil commented 4 days ago

Describe the bug

If you paste in CommonMark URL syntax using either angle brackets or square brackets and parenthesis, the preview information will be incorrect. The clickable links inside the rich formatted message will still be correct and clickable and point to the right place (or to malicious site, depending on the intention of the sender). It is only the link preview itself that is misleading.

Reproduction

Turn on "Markdown formatting" in settings and send in the following message:

https://bkil.gitlab.io/static-wonders.js/game/guard.htm#
[Bifurcation diagram of logistic map](https://bkil.gitlab.io/static-wonders.js/toy/logismap.htm#)
<https://bkil.gitlab.io/static-wonders.js/toy/busybvr.htm#>
[https://bkil.gitlab.io/static-wonders.js/joke/dare.htm#](https://bkil.gitlab.io/static-wonders.js/joke/dare.htm#)
[https://bkil.gitlab.io/gemiweb0/#](https://bkil.gitlab.io/static-wonders.js/game/rockpaps.htm#)

You will get preview descriptions and links for the following URLs respectively:

Expected behavior

You should be getting preview descriptions and links for the following URLs respectively:

Platform and versions

Cinny Web v4.2.3

Additional context

No response