Fix /m and path traversal ActionLog

This commit is contained in:
calzoneman 2013-11-21 17:46:33 -06:00
parent 7868b4ce3e
commit 2f8b304b68
2 changed files with 3 additions and 3 deletions

View file

@ -43,6 +43,7 @@ var Logger = require("./logger");
var Channel = require("./channel");
var User = require("./user");
var $util = require("./utilities");
var ActionLog = require("./actionlog");
var Server = function (cfg) {
var self = this;
@ -61,7 +62,6 @@ var Server = function (cfg) {
self.api = null;
self.announcement = null;
self.httplog = null;
self.actionlog = null;
self.infogetter = null;
self.torblocker = null;
@ -115,7 +115,7 @@ var Server = function (cfg) {
Logger.syslog.log("WARNING: Attempted path traversal "+
"from IP " + self.getHTTPIP(req));
Logger.syslog.log("Path was: " + req.url);
self.actionlog.record(self.getHTTPIP(req), "",
ActionLog.record(self.getHTTPIP(req), "",
"path-traversal",
req.url);
} else if (e.status >= 500) {

View file

@ -158,7 +158,7 @@ $("#chatline").keydown(function(ev) {
}
if (CLIENT.rank >= 2 && msg.indexOf("/m ") === 0) {
meta.modflair = CLIENT.rank;
msg = msg.substring(4);
msg = msg.substring(3);
}
socket.emit("chatMsg", {