r544: Need to run nl2br() on the diff
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2005 03:29:39 +0000 (03:29 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 12 Oct 2005 03:29:39 +0000 (03:29 +0000)
editcomment.php

index 990298c8118a020ad2030d3b1789f0ac40a06ce4..8d990994bb0ae2a8b9ac100ef7564693e0e94552 100644 (file)
@@ -86,7 +86,7 @@ if ($_POST['do'] == 'update')
        $log = new History();
        $log->bugid = $bug['bugid'];
        $log->commentid = $comment['commentid'];
-       $log->log($log->diff('text', $comment['comment_parsed'], $bugsys->in['comment_parsed']));
+       $log->log($log->diff('text', $comment['comment_parsed'], nl2br($bugsys->in['comment_parsed'])));
        $log->log($log->diff('hidden', $comment['hidden'], intval($bugsys->in['hidden'])));
        
        $lastgood = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "comment WHERE bugid = $bug[bugid] AND !hidden ORDER BY dateline DESC");