Ensure roomid for logging is safe

In theory it should be safe before it gets to this point, but
we're being extra-careful since it involves the user's files.
This commit is contained in:
Guangcong Luo 2013-08-31 22:15:41 -05:00
parent a34f30dc48
commit 789411a76d

View File

@ -77,6 +77,7 @@ _Storage.prototype.nwStopLoggingChat = function() {
}
};
_Storage.prototype.nwLogChat = function(roomid, line) {
roomid = toRoomid(roomid);
var self = this;
if (!this.loggingChat) return;
var chatLogFdMonth = this.getLogMonth();