Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Bug]: Missing Unicode filtering for names? (e.g. RTL override can affect UI strings)

Open valpackett opened this issue 2 years ago • 3 comments

Describe the bug

A name ending in an RTL Override character results in the UI string "boosted" getting displayed as "detsoob":

"Alice detsoob"

This is innocent enough :) but I'm wondering which other Unicode magic could affect things in unexpected ways. Probably would make sense to filter that kind of thing / reset the unicode context somehow (maybe just splitting the user string into a separate label)?

Steps To Reproduce

Go to profile: @[email protected]

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Chimera Linux

Package

Flatpak

Troubleshooting information

No response

Additional Context

No response

valpackett avatar Oct 13 '23 20:10 valpackett

Alice is breaking mastodon web too :weary: image

Not sure about splitting them into separate labels as it might cause issues with the translations and screen readers. I need to check how desktop notifications handle it too :shrug:

Honestly, this feels like something pango markup should already support :/ like <bdi> or even a span with dir set

GeopJr avatar Oct 13 '23 21:10 GeopJr

I need to check how desktop notifications handle it too

Screenshot from 2023-10-14 00-33-13

not well...

GeopJr avatar Oct 13 '23 21:10 GeopJr

Apparently trying to isolate this in one text block is non-trivial

valpackett avatar Oct 13 '23 21:10 valpackett