Module: check_mk
Branch: master
Commit: daee9c58a39f1c73bb27f05f8081cc062b7b5189
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=daee9c58a39f1c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 28 15:57:04 2017 +0100
4419 FIX check_form_submit: Deal with forms that provide the method as lower case string
Change-Id: Iffb9b90ee36eb5c3871c3cfb1d0c9b1e9234be8c
---
.werks/4419 | 10 ++++++++++
active_checks/check_form_submit | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4419 b/.werks/4419
new file mode 100644
index 0000000..a2c5659
--- /dev/null
+++ b/.werks/4419
@@ -0,0 +1,10 @@
+Title: check_form_submit: Deal with forms that provide the method as lower case string
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1488293801
+Class: fix
+
+
diff --git a/active_checks/check_form_submit b/active_checks/check_form_submit
index 5ccf732..51d61fa 100755
--- a/active_checks/check_form_submit
+++ b/active_checks/check_form_submit
@@ -302,7 +302,7 @@ try:
# Issue a HTTP request with those parameters
# Extract the form target and method
- method = form['attrs'].get('method', 'GET')
+ method = form['attrs'].get('method', 'GET').upper()
target = form['attrs'].get('action', real_url)
if target[0] == '/':
# target is given as absolute path, relative to hostname