mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor variable deletion in main.py in web UI to fix potential keys missing
This commit is contained in:
parent
38c0e55d33
commit
9c1af9b766
1 changed files with 2 additions and 2 deletions
|
|
@ -903,8 +903,8 @@ def services():
|
|||
del variables["csrf_token"]
|
||||
|
||||
# Delete custom client variables
|
||||
del variables["SECURITY_LEVEL"]
|
||||
del variables["mode"]
|
||||
variables.pop("SECURITY_LEVEL", None)
|
||||
variables.pop("mode", None)
|
||||
|
||||
is_draft = variables.pop("is_draft", "no") == "yes"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue