Fix web-socket-js: encode sent data across FABridge.

This commit is contained in:
Joel Martin
2010-05-28 14:10:57 -05:00
parent af6b17ce06
commit d38406e6b5
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@
if (!this.__flash || this.readyState == WebSocket.CONNECTING) {
throw "INVALID_STATE_ERR: Web Socket connection has not been established";
}
var result = this.__flash.send(data);
var result = this.__flash.send(encodeURIComponent(data));
if (result < 0) { // success
return true;
} else {