Index: trunk/globals.php =================================================================== diff -u -r534 -r549 --- trunk/globals.php (.../globals.php) (revision 534) +++ trunk/globals.php (.../globals.php) (revision 549) @@ -632,11 +632,8 @@ $text = ReplaceURL($text); // BBCode: [code]xxx[/code] - $text = str_replace("\n",chr(1),$text); - $text = str_replace("\r",chr(2),$text); - $text = preg_replace('/\[code[^\]]*\](.*)\[\/code[^\]]*\]/Ue', 'highlight_string( _unhtmlentities("$1") , true)', $text); - $text = str_replace(chr(1),"\n",$text); - $text = str_replace(chr(2),"\r",$text); + $text = preg_replace('/\[code[^\]]*\](.*)\[\/code[^\]]*\]/Ues', 'highlight_string( _unhtmlentities(\'$1\') , true);', $text); + return $text; }