Commit 2b5aa57f authored by Chris Graham's avatar Chris Graham

Fixed MANTIS-4187 (Problem with automatic ban notifications)

parent da8bcdbd
......@@ -452,7 +452,7 @@ function __comcode_to_tempcode($comcode, $source_member, $as_admin, $wrap_pos, $
'</composr-test>',
);
$link_terminator_strs = array(' ', "\n", ']', '[', ')', '"', '>', '<', '}', '{', ".\n", ', ', '. ', "'", '&nbsp;', '&quot;', '&rdquo;', '&ldquo;');
$link_terminator_strs = array(' ', "\n", ']', '[', ')', '"', '>', '<', '}', '{', ".\n", ', ', '. ', "'", '&nbsp;', '&quot;', '&rdquo;', '&ldquo;', "\0");
if (get_charset() == 'utf-8') {
$nbsp = chr(hexdec('C2')) . chr(hexdec('A0'));
$link_terminator_strs[] = $nbsp;
......
......@@ -667,8 +667,8 @@ function _log_hack_attack_and_exit($reason, $reason_param_a = '', $reason_param_
if ($row['reason'] == 'LAME_SPAM_HACK') {
$is_spammer = true;
}
$full_reason = do_lang($row['reason'], $row['reason_param_a'], $row['reason_param_b'], null, get_site_default_lang());
$summary .= "\n" . '[*]' . $full_reason . "\n" . $row['url'] . "\n" . get_timezoned_date($row['date_and_time']);
$full_reason = do_lang($row['reason'], '[tt]' . comcode_escape($row['reason_param_a']) . '[/tt]', '[tt]' . comcode_escape($row['reason_param_b']) . '[/tt]', null, get_site_default_lang());
$summary .= "\n" . '[*]' . $full_reason . "\n[tt]" . comcode_escape($row['url']) . "[/tt]\n" . get_timezoned_date($row['date_and_time']);
}
$summary .= "\n" . '[/list]';
if ($is_spammer) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment