You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by jm...@apache.org on 2016/06/30 05:37:04 UTC

[10/32] incubator-guacamole-client git commit: GUACAMOLE-55: Do not attempt to send empty text blobs.

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


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/2a20aefa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/2a20aefa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/2a20aefa

Branch: refs/heads/master
Commit: 2a20aefa9284ca42a4862dc1700227703cbcf04b
Parents: 17e97e4
Author: Michael Jumper <mj...@apache.org>
Authored: Mon Jun 27 18:33:15 2016 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Mon Jun 27 18:33:15 2016 -0700

----------------------------------------------------------------------
 guacamole-common-js/src/main/webapp/modules/StringWriter.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/2a20aefa/guacamole-common-js/src/main/webapp/modules/StringWriter.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/StringWriter.js b/guacamole-common-js/src/main/webapp/modules/StringWriter.js
index 5a865e1..abf1684 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));
     };
 
     /**