Messages with links that contain ampersands are not shown
If you post messages with links (URLs) that contain ampersand, the entire is rendered as blank space.
Example event content:
{
"content": {
"body": "Test: http://some.host/path?param1=foo¶m2=bar",
"msgtype": "m.text"
},
"event_id": "[REDACTED]",
"origin_server_ts": 1696269523088,
"room_id": "[REDACTED]:matrix.org",
"sender": "[REDACTED]:matrix.org",
"type": "m.room.message",
"unsigned": {
"age": 605,
"transaction_id": "0f550e2881c746bc8550a83dd4a2e770"
}
}
Log message:
(fractal:2): Gtk-WARNING **: 20:06:38.833: Failed to set text '<a href="http://some.host/path?param1=foo¶m2=bar" title="http://some.host/path?param1=foo&param2=bar">http://some.host/path?param1=foo&param2=bar</a>' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
Steps to reproduce
- Open Fractal
- Enter a room
- Post a message that contains an URL with at least one ampersand in it, e.g. http://some.host/path?param1=foo¶m2=bar
Information
-
This bug is reproducible from the latest nightly build -
Fractal Version: 5.beta2- 2fd2ec12 - OS Version: Debian GNU/Linux trixie/sid
- Installation Source: Flatpak (GNOME Nightly)
- Homeserver: N/A
Edited by Paul van Tilburg