Skip to content

Commit

Permalink
fix likley xss
Browse files Browse the repository at this point in the history
  • Loading branch information
sk337 authored Nov 14, 2023
1 parent 391ba35 commit 68e1b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moderation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("<", "&lt;").replace(">", "$gt;"));
} else {
res.send("idot");
}
Expand Down

0 comments on commit 68e1b21

Please sign in to comment.