From 1e0c246467cd45617d390cb24c45dee2a413c6a0 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Tue, 27 Jan 2026 16:11:18 +0100 Subject: [PATCH] single tick fix --- public/s/js/user_comments.js | 6 ++---- src/inc/routes/comments.mjs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/public/s/js/user_comments.js b/public/s/js/user_comments.js index 7df63fe..f8c4be7 100644 --- a/public/s/js/user_comments.js +++ b/public/s/js/user_comments.js @@ -125,8 +125,7 @@ class UserCommentSystem { safe = safe .replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """) - .replace(/'/g, "'"); + .replace(/>/g, ">"); } } diff --git a/src/inc/routes/comments.mjs b/src/inc/routes/comments.mjs index 95b9fe2..4f1ea21 100644 --- a/src/inc/routes/comments.mjs +++ b/src/inc/routes/comments.mjs @@ -133,7 +133,7 @@ export default (router, tpl) => { if (isJson) { return res.reply({ headers: { 'Content-Type': 'application/json; charset=utf-8' }, - body: JSON.stringify({ success: true, comments: processedComments }) + body: JSON.stringify({ success: true, comments: comments }) }); }