Word Censor Acting Up After Upgrade to 2.0.5

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

Word Censor Acting Up After Upgrade to 2.0.5

Postby owen » Fri Jun 20, 2003 4:34 am

Hello,

After I upgraded from 2.0.3 to 2.0.5 the word censor feature doesn't work properly. For example, the word hello is changed to ****o. I have "he-l" in the database, not "he-l*", etc. It worked fine under 2.0.3. Does anyone have any idea what could be causing this problem? I don't have any modifications installed that could cause this... I tried putting a stock install back and it still did it.

Help!

Thanks,
Owen
owen
Registered User
 
Posts: 3
Joined: Fri Jan 18, 2002 1:42 am

Postby peach21 » Fri Jun 20, 2003 12:38 pm

this is also happening in 2.0.4...
peach21
Registered User
 
Posts: 9
Joined: Tue Apr 01, 2003 6:21 am

Postby GUI » Fri Jun 20, 2003 12:54 pm

Open up includes/functions.php. Online 506, find:

Code: Select all
         $orig_word[] = '#(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')#i';


And replace with:

Code: Select all
         $orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
Hard work may not kill you, but why take chances?
GUI
Registered User
 
Posts: 65
Joined: Sat May 25, 2002 3:21 pm
Location: The padded room

Postby peach21 » Fri Jun 20, 2003 1:13 pm

k it works good.. thxs a lot =)
peach21
Registered User
 
Posts: 9
Joined: Tue Apr 01, 2003 6:21 am


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests