From dc2ba1c2387e4dbde289aaaa21b1ebd657208207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=8D=8E=E4=BC=9F?= Date: Fri, 27 May 2022 15:41:16 +0800 Subject: [PATCH] *Fix bug #22873. --- module/common/view/action.html.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/module/common/view/action.html.php b/module/common/view/action.html.php index 6d4ebd640d..5dc5c3506c 100755 --- a/module/common/view/action.html.php +++ b/module/common/view/action.html.php @@ -67,7 +67,22 @@
-
comment) == $action->comment ? nl2br($action->comment) : $action->comment;?>
+
+ comment, '
') !== false)
+              {
+                $before   = explode('
', $action->comment);
+                $after    = explode('
', $before[1]); + $htmlCode = $after[0]; + $text = $before[0] . htmlspecialchars($htmlCode) . $after[1]; + echo $text; + } + else + { + echo strip_tags($action->comment) == $action->comment ? nl2br($action->comment) : $action->comment; + } + ?> +
id")?>'>