From 789411a76d96d8d2e3ea46aaeac7ae32b4f4b8a6 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 31 Aug 2013 22:15:41 -0500 Subject: [PATCH] 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. --- js/storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/storage.js b/js/storage.js index bff83cf33..27e29bfd2 100644 --- a/js/storage.js +++ b/js/storage.js @@ -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();