j_86
04-21-2005, 05:31 PM
Not sure what to do here (3.4.4 to 3.4.5)
2. Edit file includes/functions_newpost.php and find:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
// censor and htmlspecialchars post title
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
}
Replace that with:
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
Oh, is it just missing a "find"? I think so.
2. Edit file includes/functions_newpost.php and find:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
// censor and htmlspecialchars post title
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
}
Replace that with:
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
Oh, is it just missing a "find"? I think so.