Remove empty lines from multi-line config values
This commit is contained in:
parent
86657529c9
commit
5173597868
1 changed files with 4 additions and 0 deletions
|
@ -1053,6 +1053,10 @@ class UiWebsocket(object):
|
|||
self.response(to, {"error": "Forbidden you cannot set this config key"})
|
||||
return
|
||||
|
||||
# Remove empty lines from lists
|
||||
if type(value) is list:
|
||||
value = [line for line in value if line]
|
||||
|
||||
config.saveValue(key, value)
|
||||
|
||||
if key not in config.keys_restart_need:
|
||||
|
|
Loading…
Reference in a new issue