From 2b79a129aa3a1c47cd57bae3ca3aeb5c9e0e76ab Mon Sep 17 00:00:00 2001 From: Arksine Date: Tue, 20 Apr 2021 15:03:17 -0400 Subject: [PATCH] app: fix unauthorized file upload access Signed-off-by: Eric Callahan --- moonraker/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/moonraker/app.py b/moonraker/app.py index ab60226..d910f8a 100644 --- a/moonraker/app.py +++ b/moonraker/app.py @@ -602,6 +602,7 @@ class FileUploadHandler(AuthorizedRequestHandler): self.max_upload_size = max_upload_size def prepare(self): + super(FileUploadHandler, self).prepare() if self.request.method == "POST": self.request.connection.set_max_body_size(self.max_upload_size) tmpname = self.file_manager.gen_temp_upload_path()