From 670edffa33f605a9dc1066c07992994ff874cb96 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 12 Oct 2005 03:29:39 +0000 Subject: [PATCH] r544: Need to run nl2br() on the diff --- editcomment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editcomment.php b/editcomment.php index 990298c..8d99099 100644 --- a/editcomment.php +++ b/editcomment.php @@ -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"); -- 2.43.5