Word censoring does not respect word boundaries in topic titles

It seems the censoring parser bug was not completely fixed. In post content, the word censorer replaces characters of censored words by ■, and for topic titles the censorer blocks posting until you change the title.

The bug caused legitimate words to be censored if they contain censored words, that means even if the word boundaries do not match. This was fixed for post content, but not for topic titles.

2 Likes

The censorer isn’t enabled in this forum, but you can try in a forum where it is.

@eviltrout can verify but if the censored word is

arse

and the matching word is

parsed

that should not match since there are no word boundaries on either side.

Oh wait – you are referring to topic titles, you massively buried the lede in your first post. I’ve edited topic title to reflect and Robin can validate the fix.

This should fix it:

https://github.com/discourse/discourse/commit/b93edc9945daafed1c8c75c984d7d32f1658efa8

6 Likes