This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
Profanity Filter in Forum Search Results List
Posted: 18 June 2008 10:26 AM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi,

Running EE Forum 2.1.0 Build 20080421 and EE 1.6.3 20080421. We have implemented word censoring throughout EE and the Forum. It generally works as expected. However, today the client informed us that unfiltered words were showing in forum search results.

My initial checks suggest that on or about line 10902 in mod.forum_core.php the variable $snippet is assigned the value of the SQL query for post body but is then not filtered. I’ve been able to filter the results by adding this code

require_once(PATH_CORE.'core.typography'.EXT);
$TYPE = new Typography;
$snippet = $TYPE->filter_censored_words($snippet);

directly above this code on or about line 10899

$reply_info[$row['post_id']] = array(
            
'member_id' => $row['member_id'],
            
'screen_name' => $row['screen_name'],
            
'snippet' => $snippet);

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 20 June 2008 11:50 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Thanks for the report! This has been fixed, and will be out next revision. You can email (please, no pms) me for the updated file if you like.

Profile
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64909 Total Logged-in Users: 35
Total Topics: 81853 Total Anonymous Users: 24
Total Replies: 440064 Total Guests: 247
Total Posts: 521917    
Members ( View Memberlist )