summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/comment.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index 9cc66fa3f..9dc3f5570 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -93,6 +93,9 @@ function comment_reply($pid, $id) {
function comment_preview($pid, $id, $subject, $comment) {
global $allowed_html, $link, $REQUEST_URI, $theme, $user;
+ $subject = check_output($subject);
+ $comment = check_output($comment);
+
// Preview comment:
comment_view(new Comment($user->userid, $subject, $comment, time(), $user->url, $user->fake_email, 0, 0, 0, 0), t("reply to this comment"));