Commit d6967640 authored by Chris Graham's avatar Chris Graham

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

parent 50c98b14
......@@ -2358,8 +2358,8 @@ 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')) {
$evaluated = $embed->evaluate();
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)) {
require_code('comcode_from_html');
......
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