Skip to content

Fix the ability to send messages with secret, unrendered text.#1517

Open
VaporeonMega-git wants to merge 2 commits intoValour-Software:mainfrom
VaporeonMega-git:fix/messages-with-hidden-unrendered-text
Open

Fix the ability to send messages with secret, unrendered text.#1517
VaporeonMega-git wants to merge 2 commits intoValour-Software:mainfrom
VaporeonMega-git:fix/messages-with-hidden-unrendered-text

Conversation

@VaporeonMega-git
Copy link

Users could send messages with hidden text like [this](), which would be rendered as an empty string with a link referring to this. Custom css can't be used to reveal this text because the hidden text is in the href attribute rather than the text. It's a nightmare for moderation if members communicate like this since the only way to see it is to use the copy text button.

The fix is to insert a backslash into the message between ] and (). This prevents the text from being rendered as a link with no text, and doesn't appear to have a backslash inserted.

Also, there was a similar replace already present which changes []( to (. The problem with this was that users could just type [][]( and it would be changed to [](.

The fix is to instead replace []( with []\(. This will appear as [](, but the backslash breaks up the [] and (.

@VaporeonMega-git VaporeonMega-git requested a review from a team as a code owner March 3, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants