From a8604ece5479ec253dc6a41121122864162d3a79 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 9 Dec 2018 00:17:03 -0700 Subject: [PATCH] Ensure 'userName' has _something_ if sanatized all the way out --- core/door.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/door.js b/core/door.js index eb01d6fa..120bd6f3 100644 --- a/core/door.js +++ b/core/door.js @@ -64,7 +64,7 @@ module.exports = class Door { node : exeInfo.node.toString(), srvPort : this.sockServer ? this.sockServer.address().port.toString() : '-1', userId : this.client.user.userId.toString(), - userName : sanatizeFilename(this.client.user.username), + userName : sanatizeFilename(this.client.user.username) || `user${this.client.user.userId.toString()}`, userNameRaw : this.client.user.username, cwd : cwd, };