Module: check_mk
Branch: master
Commit: 52a712ebf6e3e944ada9ad98d5b507f38ba0e7cb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=52a712ebf6e3e9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 12 20:41:51 2018 +0200
Fixed access to not existing member since html/http split
Change-Id: I165eee1517eb36339660f3b832bc0b4883eefef1
---
cmk/gui/plugins/wato/mkeventd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/plugins/wato/mkeventd.py b/cmk/gui/plugins/wato/mkeventd.py
index d045caa..7669f6d 100644
--- a/cmk/gui/plugins/wato/mkeventd.py
+++ b/cmk/gui/plugins/wato/mkeventd.py
@@ -2282,7 +2282,7 @@ class ModeEventConsoleMIBs(EventConsoleMode):
return ""
else:
return
- elif "_upload_mib" in html.uploads:
+ elif html.request.uploaded_file("_upload_mib"):
uploaded_mib = html.request.uploaded_file("_upload_mib")
filename, mimetype, content = uploaded_mib
if filename: