[Pkg-javascript-commits] [sockjs-client] 211/434: Fix #27 - use custom JSON quoting function

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 15e0864890e61a829f57e77b43907b9c71739b65
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Fri Nov 25 16:30:10 2011 +0000

    Fix #27 - use custom JSON quoting function
---
 lib/sockjs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sockjs.js b/lib/sockjs.js
index 3dc1765..3adbbbc 100644
--- a/lib/sockjs.js
+++ b/lib/sockjs.js
@@ -199,7 +199,7 @@ SockJS.prototype.send = function(data) {
     if (that.readyState === SockJS.CONNECTING)
         throw new Error('INVALID_STATE_ERR');
     if (that.readyState === SockJS.OPEN) {
-        that._transport.doSend(JSON.stringify('' + data));
+        that._transport.doSend(utils.quote('' + data));
     }
     return true;
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list