Don't allow setting values to be objects
This commit is contained in:
parent
95a0045a0d
commit
e80b058550
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user