mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:37:25 +08:00

Currently we don’t apply watched words to custom user fields nor user profile fields. This led to users being able to use blocked words in their bio, location or some custom user fields. This patch addresses this issue by adding some validations so it’s not possible anymore to save the User model or the UserProfile model if they contain blocked words.