Skip to content

Commit

Permalink
[FIX] Escape unrecognized slash command message (#14432)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored and sampaiodiego committed May 8, 2019
1 parent e9d6611 commit a81123d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/ui/client/lib/chatMessages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import _ from 'underscore';
import moment from 'moment';
import toastr from 'toastr';
import _ from 'underscore';
import s from 'underscore.string';

import { Meteor } from 'meteor/meteor';
import { Random } from 'meteor/random';
Expand Down Expand Up @@ -429,7 +430,7 @@ export class ChatMessages {
_id: Random.id(),
rid: msgObject.rid,
ts: new Date,
msg: TAPi18n.__('No_such_command', { command: match[1] }),
msg: TAPi18n.__('No_such_command', { command: s.escapeHTML(match[1]) }),
u: {
username: settings.get('InternalHubot_Username'),
},
Expand Down

0 comments on commit a81123d

Please sign in to comment.