Not forbidden forbidden word (Bugs)

by Per Bylund ⌂ @, Columbia, Mo, Monday, May 05, 2008, 17:44 (5828 days ago)

I'm still using the 1.6 version of my little forum and I'm very happy with it were it not for the huge increase in spammers haunting the forum. I've managed to fend most of them off through adding typical spam words (like medicines, different sex words, etc.) and URLS to the banlist.

However, recently a user of the forum wasn't able to submit a post to the forum including the word "socialists." This word is not on my ban list, and since the forum is mainly for a discussion on philosophy and politics it is no doubt a rather important (=common) word to use. I checked it out, and it seems every time a user - even admin - tries to submit a post that includes the word "socialist" (with or without ending "s") the post is stopped by my little forum - "Error: the posting contains at least one not accepted word".

I've tested this enough to know that it is indeed the word socialist. Anybody heard about this problem before? It seems like a very strange word to censor in the source code... :-P

Check these thread for information on this issue:
- Labor Fundamentalism
- Forbidden Words in Posts

Are there any more words that aren't allowed? Anybody know where/why/how this error arises?


Per Bylund

locked
8194 views
Avatar

Allowed (?) word

by Alfie ⌂, Vienna, Austria, Monday, May 05, 2008, 22:34 (5828 days ago) @ Per Bylund

I've tested this enough to know that it is indeed the word socialist. Anybody heard about this problem before? It seems like a very strange word to censor in the source code... :-P

Dear Per,

very strange! :confused:
I'm running v1.7.5 in English, and got no problems with any of 'socialist, socialists, socialism'.
I added 'socialis' to my banlist -> posting was refused -> removed it -> posting was possible.

There is just one section of the source (>1.6) checking entries for banned words in the database, namely a couple of lines in 'posting.php':

// check for not accepted words:
$result=mysql_query("SELECT list FROM ".$db_settings['banlists_table']." WHERE name = 'words' LIMIT 1", $connid);
if(!$result) die($lang['db_error']);
$data = mysql_fetch_array($result);
mysql_free_result($result);
if(trim($data['list']) != '')
 {
  $not_accepted_words = explode(',',trim($data['list']));
  foreach($not_accepted_words as $not_accepted_word)
   {
    if($not_accepted_word!='' && (preg_match("/".$not_accepted_word."/i",$name) || preg_match("/".$not_accepted_word."/i",$text) || preg_match("/".$not_accepted_word."/i",$subject) || preg_match("/".$not_accepted_word."/i",$email) || preg_match("/".$not_accepted_word."/i",$hp) || preg_match("/".$not_accepted_word."/i",$place)))
     {
      $errors[] = $lang['error_not_accepted_word'];
      break;
     }
   }
 }


The code is identical in all versions within 1.6.2 and 1.7.5; so I don't see why you are facing this problem. Maybe you should check the table 'forum_banlists' in your database...

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
8119 views

Allowed (?) word

by Per Bylund ⌂ @, Columbia, Mo, Thursday, May 08, 2008, 03:07 (5826 days ago) @ Alfie

very strange! :confused:
I'm running v1.7.5 in English, and got no problems with any of 'socialist, socialists, socialism'.
I added 'socialis' to my banlist -> posting was refused -> removed it -> posting was possible.

There is just one section of the source (>1.6) checking entries for banned words in the database, namely a couple of lines in 'posting.php'

The code is identical in all versions within 1.6.2 and 1.7.5; so I don't see why you are facing this problem. Maybe you should check the table 'forum_banlists' in your database...

Thanks, Alfie. I checked the code and it is identical to the one you pasted. I also checked the table, and there's no socialism (the word, I mean ;-) ) there. So there seems to be nothing stopping that word. Yet, I still get the error trying to submit a message...


Per

locked
7961 views

Not forbidden forbidden word

by Jeremy ⌂ @, MD, Friday, June 13, 2008, 04:22 (5790 days ago) @ Per Bylund
edited by Alfie, Friday, June 13, 2008, 09:40

Are you blocking Cialis? it is a substring of Socialism

Just a thought!

--
Edit: No TOFU please. [Alfie]

locked
7782 views
Avatar

...c i a l i s...

by Alfie ⌂, Vienna, Austria, Friday, June 13, 2008, 09:42 (5789 days ago) @ Jeremy

Hi Jeremy,

you guessed right! The topic was resolved in the 1.x forum.

--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

locked
7888 views

RSS Feed of thread