From 68e1b21fc881883ff0073dbf8b86ec99c5d447d9 Mon Sep 17 00:00:00 2001 From: sk337 <79583517+sk337@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:50:48 -0800 Subject: [PATCH] fix likley xss --- moderation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation.js b/moderation.js index fb1bf230..d3aea797 100644 --- a/moderation.js +++ b/moderation.js @@ -86,7 +86,7 @@ module.exports = { if (module.exports.bannedIps.includes(ip)) module.exports.bannedIps = module.exports.bannedIps.filter((b) => b != ip); - res.send("unbanned "+ip); + res.send("unbanned "+ip.replace("<", "<").replace(">", "$gt;")); } else { res.send("idot"); }