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

11 lines
334 B

import s from 'underscore.string';
RocketChat.Migrations.add({
version: 64,
up() {
RocketChat.models.Messages.find({ t: 'room_changed_topic', msg: /</ }, { msg: 1 }).forEach(function(message) {
const msg = s.escapeHTML(message.msg);
RocketChat.models.Messages.update({ _id: message._id }, { $set: { msg } });
});
},
});