Module: check_mk
Branch: master
Commit: 8e169c1a769715d53d2ebb5edde706079a5b8d94
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e169c1a769715…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 28 15:51:14 2017 +0100
4417 FIX check_form_submit: Fixed GET method "item is not defined" issue
Change-Id: Iaddae1962bf8bbfefd087a329e12b20f88d54f35
---
.werks/4417 | 11 +++++++++++
active_checks/check_form_submit | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4417 b/.werks/4417
new file mode 100644
index 0000000..951cc7f
--- /dev/null
+++ b/.werks/4417
@@ -0,0 +1,11 @@
+Title: check_form_submit: Fixed GET method "item is not defined" issue
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1488293456
+
+
diff --git a/active_checks/check_form_submit b/active_checks/check_form_submit
index 66280cf..ced4049 100755
--- a/active_checks/check_form_submit
+++ b/active_checks/check_form_submit
@@ -186,7 +186,7 @@ def open_url(url, method = 'GET', data = None):
if method == 'GET' and data is not None:
# Add the query string to the url in this case
start = '?' in url and '&' or '?'
- url += start + '&'.join([ '='.join(item) for item in
data.items() ])
+ url += start + urllib.urlencode(data)
data = None
try: