Module: check_mk
Branch: master
Commit: 79bfebbd5be522615b039036ab2ad761fca14d3f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=79bfebbd5be522…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 1 13:57:33 2018 +0200
Cleaned up HTTP parameter input handling
* Validation of URL input is now centralized in html() by
html.get_url_input()
* Added get_ascii_input() function
* Added tests for this function
* Added tests for get_integer_input() on the way
Change-Id: I4d542de71e14d92b4405825957c922b2b57b5dc0
---
cmk/gui/htmllib.py | 40 +++++++++++
cmk/gui/login.py | 19 +++--
cmk/gui/main.py | 11 ++-
cmk/gui/utils.py | 22 +++---
cmk/gui/views.py | 5 +-
cmk/gui/visuals.py | 25 ++-----
tests/unit/cmk/gui/test_htmllib_input_vars.py | 100 ++++++++++++++++++++++++++
tests/unit/cmk/gui/test_index.py | 58 +++++++++++++++
8 files changed, 230 insertions(+), 50 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=79bfebbd5b…