mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Prevent HTML injection through /topic!!!!
Really big security issue here.
This commit is contained in:
parent
890c751bb6
commit
6c852a849a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module.exports = function(irc, network) {
|
|||
chan.topic = topic
|
||||
client.emit("topic", {
|
||||
chan: chan.id,
|
||||
topic: topic
|
||||
topic: _.escape(topic)
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue