From 3f9d406f8d9e0ab5894900340a4659e0d68c1bd2 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 26 May 2020 19:19:20 +0900 Subject: [PATCH] Fix #1295 empty list returned in procCommentGetList --- modules/comment/comment.controller.php | 2 +- modules/comment/comment.model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index 413a099a9..24abf5266 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -1828,7 +1828,7 @@ class commentController extends comment { foreach($commentList as $value) { - $value->content = strip_tags($value->content); + $value->content = escape(strip_tags($value->content), false); } } } diff --git a/modules/comment/comment.model.php b/modules/comment/comment.model.php index df04759ab..cb1792bda 100644 --- a/modules/comment/comment.model.php +++ b/modules/comment/comment.model.php @@ -187,7 +187,7 @@ class commentModel extends comment // fetch from a database $args = new stdClass(); - $args->comment_srls = $comment_srls; + $args->comment_srls = $comment_srl_list; $output = executeQuery('comment.getComments', $args, $columnList); if(!$output->toBool()) {