Permalink
Browse files

Bug found in hack detection due to a type in names

  • Loading branch information...
1 parent 8ffc343 commit bbf1f6838dad66bd7e7c5b47693313ef13147b7e @jettro committed Apr 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 socketio.js
View
@@ -75,15 +75,15 @@ Socketio.prototype.init = function(app) {
}
function hackFoundInMessage(message) {
- var hackfound = false;
+ var hackFound = false;
var jsonMessage = JSON.stringify(message);
var xssMessage = sanitize(jsonMessage).xss();
if (jsonMessage != xssMessage) {
var hack = {"hack":{"old":jsonMessage, "new":xssMessage, "date":new Date()}};
redis.writeWarning(JSON.stringify(hack));
hackFound = true; // Might want to do something with a callback
}
- return hackfound;
+ return hackFound;
}
};

0 comments on commit bbf1f68

Please sign in to comment.