Grey Matter Forums
« GM 1.6.1 doesn't honor multiple censored words »

Welcome Guest. Please Login or Register.
Sept 2, 2010, 9:54am



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Development :: Bug Reports :: GM 1.6.1 doesn't honor multiple censored words
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: GM 1.6.1 doesn't honor multiple censored words (Read 916 times)
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 GM 1.6.1 doesn't honor multiple censored words
« Thread Started on Dec 10, 2006, 11:36pm »

Versions Affected: GreyMatter 1.6.1
Severity: Moderate
Issue Description: Only GM installations with multiple censored words are affected.The code that examines 'censored word list' depends on each word being seperated by the characters '|*|' but as of version 1.6.1 is seperated by the newline character '\n'.

This defect was introduced by the assumption that whenever a config parameter is retrieved from the file, that the internal newline ('|*|') was replaced with the regular newline, however, for the censored words, the switch was made later.

Resolution: This is an easy defect to fix and requires that two lines of code be changed in the gm-library.cgi file. Lines 1033, 1283, and 3406.
From:
Code:
@censoredterms = split(/\|\*\|/, $censorlist);

To:
Code:
@censoredterms = split('\\n', $censorlist);


This will be fixed in GM 1.7.1
« Last Edit: Jan 3, 2007, 11:46pm by coldstone »Link to Post - Back to Top  IP: Logged
   [Search This Thread][Send Topic To Friend] [Print]

Google
Webgreymatterforum.proboards.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Report Abuse | Mobile