GUACAMOLE-55: Do not attempt to send empty text blobs.

This commit is contained in:
Michael Jumper
2016-06-27 18:33:15 -07:00
parent 17e97e4311
commit 2a20aefa92

View File

@@ -170,6 +170,7 @@ Guacamole.StringWriter = function(stream) {
* @param {String} text The text to send.
*/
this.sendText = function(text) {
if (text.length)
array_writer.sendData(__encode_utf8(text));
};