Compare commits

...

6 Commits

Author SHA1 Message Date
Guillermo Rauch
64d8f572aa Release 0.9.15 2013-06-06 08:22:29 -07:00
Guillermo Rauch
4e1ba9f872 transports: escaping (fixes #1251) 2013-06-06 08:17:40 -07:00
Guillermo Rauch
5d93af994a Release 0.9.14 2013-03-29 14:15:52 -07:00
Guillermo Rauch
6e25c802cc manager: fix memory leak with SSL 2013-03-29 14:14:42 -07:00
Guillermo Rauch
37690f78d7 Release 0.9.13 2012-12-13 15:15:38 -03:00
Guillermo Rauch
3cbd00ca70 package: fixed base64id requirement 2012-12-13 15:15:15 -03:00
5 changed files with 22 additions and 4 deletions

View File

@@ -1,4 +1,19 @@
0.9.15 / 2013-06-06
===================
* transports: added escaping to htmlfile (fixes #1251)
0.9.14 / 2013-03-29
===================
* manager: fix memory leak with SSL [jpallen]
0.9.13 / 2012-12-13
===================
* package: fixed `base64id` requirement
0.9.12 / 2012-12-13
===================

View File

@@ -616,6 +616,7 @@ Manager.prototype.handleUpgrade = function (req, socket, head) {
req.head = head;
this.handleClient(data, req);
req.head = null;
};
/**

View File

@@ -15,7 +15,7 @@ var client = require('socket.io-client');
* Version.
*/
exports.version = '0.9.11';
exports.version = '0.9.15';
/**
* Supported protocol version.

View File

@@ -72,7 +72,8 @@ HTMLFile.prototype.handleRequest = function (req) {
*/
HTMLFile.prototype.write = function (data) {
data = '<script>_(' + JSON.stringify(data) + ');</script>';
// escape all forward slashes. see GH-1251
data = '<script>_(' + JSON.stringify(data).replace(/\//g, '//') + ');</script>';
if (this.response.write(data)) {
this.drained = true;

View File

@@ -1,6 +1,6 @@
{
"name": "socket.io"
, "version": "0.9.12"
, "version": "0.9.15"
, "description": "Real-time apps made cross-browser & easy with a WebSocket-like API"
, "homepage": "http://socket.io"
, "keywords": ["websocket", "socket", "realtime", "socket.io", "comet", "ajax"]
@@ -16,8 +16,9 @@
, "url": "https://github.com/LearnBoost/socket.io.git"
}
, "dependencies": {
"socket.io-client": "0.9.11"
"socket.io-client": "0.9.15"
, "policyfile": "0.0.4"
, "base64id": "0.1.0"
}
, "devDependencies": {
"expresso": "0.9.2"