Index: trunk/globals.php =================================================================== diff -u -r693 -r717 --- trunk/globals.php (.../globals.php) (revision 693) +++ trunk/globals.php (.../globals.php) (revision 717) @@ -665,15 +665,15 @@ $text); // bbcode [code]xxx[/code] processing - $text = preg_replace('/\[code](.*)\[\/code]/Ues', 'ReplaceCodeBBCode(highlight_string(\'UndoSmileys(_unhtmlentities( stripslashes(\'$1\') ) ).\' ?>\', true));', $text); + $text = preg_replace('/\[code\](.*)\[\/code\]/Ues', 'ReplaceCodeBBCode(highlight_string("UndoSmileys(_unhtmlentities( stripslashes(\'$1\') ) ). "?>" , true));', $text); return $text; } function ReplaceCodeBBCode($input_string) { if( strlen($input_string) ) { - $input_string = str_replace(Array('<?php ','?>'),Array('',''),$input_string); + $input_string = str_replace(Array('<?php','?>'),Array('',''),$input_string); } $input_string = str_replace("
","",$input_string);