From e80b058550a8dd893226b02f26414b129514e790 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 16 Jan 2019 10:59:52 +0200 Subject: [PATCH] Don't allow setting values to be objects --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index df29503b..d05a0774 100644 --- a/src/server.js +++ b/src/server.js @@ -494,7 +494,7 @@ function initializeClient(socket, client, token, lastMessage) { return; } - if (typeof newSetting.name !== "string" || newSetting.name[0] === "_") { + if (typeof newSetting.value === "object" || typeof newSetting.name !== "string" || newSetting.name[0] === "_") { return; }