update_manager: validate web_request args
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
4281c4d978
commit
6a5a5b50d3
|
@ -270,7 +270,7 @@ class UpdateManager:
|
|||
raise self.server.error("Update Refused: Klippy is printing")
|
||||
app: str = web_request.get_endpoint().split("/")[-1]
|
||||
if app == "client":
|
||||
app = web_request.get('name')
|
||||
app = web_request.get_str('name')
|
||||
if self.cmd_helper.is_app_updating(app):
|
||||
return f"Object {app} is currently being updated"
|
||||
updater = self.updaters.get(app, None)
|
||||
|
|
Loading…
Reference in New Issue