From 887c5a9eb5184963fff1f30d3398bc546bbb5996 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Apr 2006 02:14:22 +0000 Subject: [PATCH] r779: nl2br() is your friend --- includes/api_comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api_comment.php b/includes/api_comment.php index 308f82a..6d4b461 100644 --- a/includes/api_comment.php +++ b/includes/api_comment.php @@ -82,11 +82,11 @@ class CommentAPI extends API { if ($this->registry->options['allowhtml']) { - $this->set('comment_parsed', $this->registry->unsanitize($this->values['comment'])); + $this->set('comment_parsed', nl2br($this->registry->unsanitize($this->values['comment']))); } else { - $this->set('comment_parsed', $this->values['comment']); + $this->set('comment_parsed', nl2br($this->values['comment'])); } } -- 2.22.5