Commit d6967640 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-3991 (Comcode parsing may fail on safe mode if GeSHi addon installed)

parent 50c98b14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2358,7 +2358,7 @@ function do_code_box($type, $embed, $numbers = true, $in_semihtml = false, $is_a
{
    $_embed = mixed();
    $title = do_lang_tempcode('CODE');
    if (file_exists(get_file_base() . '/sources_custom/geshi/' . filter_naughty(($type == 'HTML') ? 'html5' : strtolower($type)) . '.php')) {
    if ((file_exists(get_file_base() . '/sources_custom/geshi/' . filter_naughty(($type == 'HTML') ? 'html5' : strtolower($type)) . '.php')) && (!in_safe_mode())) {
            $evaluated = $embed->evaluate();

        if (($in_semihtml) || ($is_all_semihtml)) {