function check_words($Message) {
global $CensorMode, $CensorReplace;
include("config.php");
if ($CensorMode != 0) {
if (is_array($CensorList)) {
$Replace = $CensorReplace;
if ($CensorMode == 1) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$Message);
}
} elseif ($CensorMode == 2) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$Message);
}
} elseif ($CensorMode == 3) {
for ($i = 0; $i < count($CensorList); $i++) {
$EditedMessage = eregi_replace("$CensorList[$i]","$Replace",$Message);
}
}
}
}
return $EditedMessage;
}
if $CensorMode is equal to zero (ie, no censoring), then it returns a nullstring, as $EditedMessage doesn't get set. This leads to a blank page load, as several initial string settings are put through this function.
I've corrected it by changing it to the following:
I had recoded mainfile.php in 8.0 recently and overlooked matching that function to that of the patches for other Nuke versions, while the code is not exactly the one you use (which will also do the job), the basics are the same. Thanks for the heads up.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum