[Pkg-javascript-commits] [sockjs-client] 109/350: Escape sent data

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:48 UTC 2016


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

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

commit d0e5b0f06b80c82dda1dbf6a5f274442f43cdba2
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Fri Oct 10 13:05:23 2014 -0400

    Escape sent data
---
 lib/main.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/main.js b/lib/main.js
index 00b721b..c865dc9 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -5,6 +5,7 @@ require('./shims');
 var u = require('url')
   , util = require('util')
   , random = require('./utils/random')
+  , escape = require('./utils/escape')
   , SecurityError = require('./error/securityerror')
   , InvalidAccessError = require('./error/invalidaccesserror')
   , InvalidStateError = require('./error/invalidstateerror')
@@ -123,7 +124,7 @@ SockJS.prototype.send = function(data) {
   if (this.readyState !== SockJS.OPEN) {
     return;
   }
-  this._transport.send(data);
+  this._transport.send(escape.quote(data));
 };
 
 SockJS.CONNECTING = 0;

-- 
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