jinora
jinora copied to clipboard
Apply bad words filter before accepting the username
In the form in which a user is required to enter a username, any word is accepted. I was able to use even bad words (need examples ?) as my username. Then in the chat also bad words are sent to other users. This hinders a chat conversation. Some filter must be provided or else give user a preference to mask bad words in a conversation
Implementing such a filter would be a good idea. We can either use another library (wordfilter) to do this on the server side or build our custom filter using a list of bad words stored in a json blob online.
You'll always miss out somethings and the filter will be bypassed. Also see https://gist.github.com/mahemoff/2314663, might be helpful if we're fixing this.