Files
cacti/tests/Unit/Security
Thomas Vincent 0f163ba945 fix(rrd): escape Info Mode, tune/resize and missing-RRD output (#8732)
* fix(rrd): escape Info Mode, tune/resize and missing-RRD output

The Data Source Info Mode view and the Graph Properties missing-RRD
message printed RRD file information, the suggested tune and resize
commands, and the data source path without escaping, so stored values
containing markup were rendered verbatim. Route the free-text cells, the
suggested-command rows, and the error path through the existing HTML
escaping, leaving the numeric columns untouched. Adds regression tests.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* test(rrd): render Info Mode with free-text RRD values

Exercise rrdtool_info2html() with markup in the file name, DS type, the
non-numeric min/max/last_ds/value fall-throughs and the RRA consolidation
function, and assert each is rendered escaped.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-19 01:11:30 -08:00
..