#111 profanity filter not working right

closed-fixed
None
7
2001-02-27
2001-02-15
No

From Tim:

Recently there's been a troll invading my website that is using quite a number of profanities... Young children visit my site since its a toy site, so I don't want to subject them to this. So in config.php I set $CensorMode=3 and it should be replacing it with a '*' no matter where the word is. The words are in the censorlist array. The only thing I can think of is that he puts those words in bold. Perhaps the regex isn't seeing it?

Discussion

  • Gaétan RYCKEBOER

    Logged In: YES
    user_id=1217

    If it is a Regex, the match pattern must be :
    '.*' not '*'

    In reges, . match any character,
    [rtop1] matches only characters r, t, o, p, 1
    [^ tuz] matches all except ' ', t, u, z
    [^a-z] matches all except characters from a to z,

    Then you put a '*' to match 0 or more time the pravios
    character, or character block,
    '+' to match one or more time,
    ? to match 0 or 1 time,
    {1,3,5} to match 1, 3 or 5 times.

    You could then place parenthesis to group a bloc; place a |
    to do a 'OR'.
    Ex :
    [Tt]hat(php)?[Ww]are\.(com)|(org)

     
  • David Norman

    David Norman - 2001-02-27
    • priority: 5 --> 7
    • assigned_to: nobody --> webratta
    • status: open --> closed-fixed
     
  • David Norman

    David Norman - 2001-02-27

    Logged In: YES
    user_id=14655

    Fixed in CVS.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks