From 08881ed8a59e9276bb83d91d976b6afb55a8611d Mon Sep 17 00:00:00 2001 From: sk337 <79583517+sk337@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:01:21 -0800 Subject: [PATCH] fix Incomplete string escaping or encoding --- moderation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation.js b/moderation.js index d3aea797..c0f6f18e 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.replace("<", "<").replace(">", "$gt;")); + res.send("unbanned "+ip.replaceAll("<", "<").replaceAll(">", "$gt;")); } else { res.send("idot"); }