From 2a20aefa9284ca42a4862dc1700227703cbcf04b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 27 Jun 2016 18:33:15 -0700 Subject: [PATCH] GUACAMOLE-55: Do not attempt to send empty text blobs. --- guacamole-common-js/src/main/webapp/modules/StringWriter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guacamole-common-js/src/main/webapp/modules/StringWriter.js b/guacamole-common-js/src/main/webapp/modules/StringWriter.js index 5a865e17d..abf1684ba 100644 --- a/guacamole-common-js/src/main/webapp/modules/StringWriter.js +++ b/guacamole-common-js/src/main/webapp/modules/StringWriter.js @@ -170,7 +170,8 @@ Guacamole.StringWriter = function(stream) { * @param {String} text The text to send. */ this.sendText = function(text) { - array_writer.sendData(__encode_utf8(text)); + if (text.length) + array_writer.sendData(__encode_utf8(text)); }; /**