From a0505afb23a63b39bf81ed7b4fa27ccaef3996d1 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Fri, 22 Sep 2017 09:34:10 +0100 Subject: [PATCH] Be defensive on comment text --- services/real-time/app/coffee/WebsocketController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/real-time/app/coffee/WebsocketController.coffee b/services/real-time/app/coffee/WebsocketController.coffee index 63c3ff903a..53ccecd51b 100644 --- a/services/real-time/app/coffee/WebsocketController.coffee +++ b/services/real-time/app/coffee/WebsocketController.coffee @@ -106,7 +106,7 @@ module.exports = WebsocketController = if options.encodeRanges try for comment in ranges?.comments or [] - comment.op.c = encodeForWebsockets(comment.op.c) + comment.op.c = encodeForWebsockets(comment.op.c) if comment.op.c? for change in ranges?.changes or [] change.op.i = encodeForWebsockets(change.op.i) if change.op.i? change.op.d = encodeForWebsockets(change.op.d) if change.op.d?