Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 1dbd481533274a566cbd4fb77e99ed5bc66af3aa
https://github.com/tribe29/checkmk/commit/1dbd481533274a566cbd4fb77e99ed5bc…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-06-22 (Tue, 22 Jun 2021)
Changed paths:
M cmk/gui/plugins/views/icons/__init__.py
M cmk/gui/utils/html.py
Log Message:
-----------
HTML: Add strict escaping when joining with str now
Operations like HTML("a") + "b" are still allowed to keep call sites
clean, but the given str objects will now be HTML escaped.
In case you experience issues with escaped HTML after this change in the
GUI, you will likely have to clean up the call sites to provide the HTML
code wrapped in a HTML object instead of just handing over a str.
Another way would be to tighten the API of HTML and prevent the joins
with str, but we would have to update a lot of call sites and this would
also make the call sites more verbose.
Change-Id: Ic7307206e9c0a81fdb3fbf3151afa63d660b8fc4
Commit: 9db1b42eecc8b69eaf0daedb19bbd8bf0fbda790
https://github.com/tribe29/checkmk/commit/9db1b42eecc8b69eaf0daedb19bbd8bf0…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-06-22 (Tue, 22 Jun 2021)
Changed paths:
M cmk/gui/crash_reporting.py
M cmk/gui/htmllib/__init__.py
M cmk/gui/login.py
M cmk/gui/plugins/sidebar/custom_links.py
M cmk/gui/plugins/views/inventory.py
M cmk/gui/plugins/views/painters.py
M cmk/gui/plugins/wato/bi_config.py
M cmk/gui/utils/rendering.py
M cmk/gui/valuespec.py
M cmk/gui/view_utils.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/services.py
M cmk/gui/wato/pages/tags.py
M cmk/gui/watolib/groups.py
M cmk/gui/werks.py
Log Message:
-----------
Various HTML related cleanups
* Use escape_html or html_escape_permissive instead of HTML() to
ensure given strings are escaped.
* Reduce some Union[str, HTML] by clarifying types and wrapping
more strings into HTML.
* Also drop some hand crafted HTML tags.
Change-Id: I33038328c99df02cba66bdd60a70bdfb4d502462
Commit: d8158d5607cde6a57474f035b3ebfcadca9dc518
https://github.com/tribe29/checkmk/commit/d8158d5607cde6a57474f035b3ebfcadc…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-06-22 (Tue, 22 Jun 2021)
Changed paths:
M cmk/gui/plugins/views/utils.py
M cmk/gui/utils/html.py
Log Message:
-----------
HTML class: Add missing type hints
Change-Id: I2e62ac6ccc5c7ade31bdeec10e2d2ec276826220
Compare:
https://github.com/tribe29/checkmk/compare/42bfffd73681...d8158d5607cd