mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
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:
parent
a34f30dc48
commit
789411a76d
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user