[checkmk-commits] 3011 FIX WATO host diagnostic page: prevent incorrectly filled input fields

Andreas Boesl ab at mathias-kettner.de
Wed Mar 16 16:19:03 CET 2016


Module: check_mk
Branch: master
Commit: 5a6bee489a7c874ce1d3576e44a5a9e7f4792498
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a6bee489a7c874ce1d3576e44a5a9e7f4792498

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Wed Mar 16 16:18:42 2016 +0100

3011 FIX WATO host diagnostic page: prevent incorrectly filled input fields

Certain browser automatically fill in username and password formulars.
The IP address and the SNMP community were on of them... This has been fixed.

---

 .werks/3011        |   10 ++++++++++
 ChangeLog          |    1 +
 web/htdocs/wato.py |    1 +
 3 files changed, 12 insertions(+)

diff --git a/.werks/3011 b/.werks/3011
new file mode 100644
index 0000000..57431f3
--- /dev/null
+++ b/.werks/3011
@@ -0,0 +1,10 @@
+Title: WATO host diagnostic page: prevent incorrectly filled input fields
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.9i1
+Date: 1458141368
+Class: fix
+
+Certain browser automatically fill in username and password formulars.
+The IP address and the SNMP community were on of them... This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index d6d0a80..4943e3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -137,6 +137,7 @@
     * 3284 FIX: Bulk import of hosts: Fixed disabling of reading first line as header...
     * 3270 FIX: Fix button [Deprecated Rulesets] within deprecated manual checks rulesets
     * 3100 FIX: fixed exception when trying to create a wato folder when that folder already exists
+    * 3011 FIX: WATO host diagnostic page: prevent incorrectly filled input fields...
 
     Notifications:
     * 3263 Notifications: allow users to restrict by their contact groups...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b3cd181..7f36e1f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2484,6 +2484,7 @@ def mode_diag_host(phase):
     forms.header(_('Host Properties'))
 
     forms.section(legend = False)
+    html.prevent_password_auto_completion()
     vs_host.render_input("vs_host", host.attributes())
     html.help(vs_host.help())
 



More information about the checkmk-commits mailing list