The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/server/startup/migrations/v064.js

10 lines
313 B

RocketChat.Migrations.add({
version: 64,
up: function() {
RocketChat.models.Messages.find({ 't': 'room_changed_topic', 'msg': /</ }, { msg: 1 }).forEach(function(message) {
let msg = s.escapeHTML(message.msg);
9 years ago
RocketChat.models.Messages.update({ _id: message._id }, { $set: { msg: msg }});
});
}
});