Hi all,

I was about to go into ProfanityFilter to make it remove an open list of
profanities. I'd happily file an improvement request on JIRA, but as it is
not my code and I'm in modifying it, I feel I should ask before doing it.. I'd
like to make the filter remove the words listed on a profanities' properties
file instead of two hard-coded words, so I was about to make the filter:

1.- check for the profanities list on ServletContext
2.- if it exists, grab it and return it
3.- else, read it from a file (a new entry on a new profanities.properties
for example), place it on ServletContext and return it

Is there some "equivalent" class to ServletContext (like, i.e. WikiSession
and Session)? Right now, I was planning to grab it from WikiContext ->
WikiEngine -> ServletContext, but just curious, I haven't found one. Any
other approach to achieve this functionality? Placing things on
ServletContext.. urg; but in this case, where else?

regards,
jp

Reply via email to