When a left to right override is added , it will mess up the review queue text. Version of forum is 3.5.0.beta2-dev
Can I clarify what you mean here? Are you referring to a specific site setting?
I’m talking about the emoji itself, not anything else: U+202E RIGHT-TO-LEFT OVERRIDE - Unicode Explorer
If the Unicode character is put into the flag reason, it will break the text.
Like this (reversed):
like this
Thanks for reporting this @twofoursixeight. Judging by the effect that this unicode character has on text, the flag reason is showing as expected there, even if it does appear garbled - it’s showing the text as it was typed by the user. It also appears that the watched words are being flagged correctly, despite the backwards writing, so I don’t know if this is a bug as such.
Aside from the text appearing backwards in the flag reason (which is as expected, given the existence of the unicode character), is there anything else problematic here?
The right to left override can also be used to bypass automod, see this:
no right to left override Unicode:
with the right to left override (notice the grammar check? autocorrect is thinking of a different word!
What is happening here: the watched word is shown as f*ck
which will be flagged by the moderators. However, if you put a Right to Left override before it, you need to type in reverse, meaning you have to type this instead: kc*f
The watched words filter will not recognize words correctly thanks to the override.
Got it - that makes sense, and I can see how that would be a way for people to work around spam filters.
As a workaround, while we figure out the nest way to handle this in core, if you add that unicode character as a watched word, it will get flagged in posts. Just go the page you linked, hit the copy button there, and paste that in as a new watched word to flag. That will cause any post using it to be flagged for review. I just tested that and it works correctly.
While there are legitimate use cases for using it (like adding some text from an RTL language inside other text), it is certainly a potential spam vector. Adding it as a watched word will help you identify when it is used and review the posts as they come in. In the meantime, we’ll see what would be the best way to handle this in core.