[dev] Agora to filter words in messages

Marko Djukic mdjukic at horde.org
Sat Apr 10 12:32:01 PDT 2004


Quoting duck <duck at obala.net>:

>
> Why not implement filtering words while displaying messages in forms.
> In Messages getMessageArray:361 method (before converting emotions) we
> just add something like:
>
> if ($GLOBALS['prefs']->getValue('message_fileter_words')) {
>     $array['message_body'] = Text::filter($array['message_body'],
> AGORA_BASE . '/config/badwords.php', '***');
> }
>
> if the "filter" method can be extended to pass an array too, it would be
> better, so in the future flat display, it wont be necessary ti re-read
> the file for each message.

sure, sounds good to me...

a patch would sound even better.

m.



--
Marko Djukic
Horde Project (http://horde.org)


More information about the dev mailing list