Don't allow setting values to be objects

This commit is contained in:
Pavel Djundik 2019-01-16 10:59:52 +02:00 committed by GitHub
parent 95a0045a0d
commit e80b058550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,7 @@ function initializeClient(socket, client, token, lastMessage) {
return; return;
} }
if (typeof newSetting.name !== "string" || newSetting.name[0] === "_") { if (typeof newSetting.value === "object" || typeof newSetting.name !== "string" || newSetting.name[0] === "_") {
return; return;
} }