diff --git a/htdocs/demo/report/index.php b/htdocs/demo/report/index.php index 505c04e14..b6793ae95 100644 --- a/htdocs/demo/report/index.php +++ b/htdocs/demo/report/index.php @@ -69,7 +69,9 @@ if ($isCodePosted) { //if code posted... include_once '../../site/geshi/geshi.php'; - $geshi = new GeSHi($_POST['code'], 'cpp'); + $code = cut_string($_POST['code']); + + $geshi = new GeSHi($code, 'cpp'); $geshi->enable_classes(); $geshi->set_header_type(GESHI_HEADER_PRE_TABLE); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); @@ -80,7 +82,6 @@ echo "