mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix display of rrdtool command using the existing dedicated function (#9846)
Sanitize the command before printing it
This commit is contained in:
committed by
PipoCanaja
parent
c60d9aeca7
commit
914531a28f
@@ -119,7 +119,7 @@ if ($error_msg) {
|
|||||||
echo "<div class='infobox'>";
|
echo "<div class='infobox'>";
|
||||||
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Command</p>";
|
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Command</p>";
|
||||||
echo "<pre class='rrd-pre'>";
|
echo "<pre class='rrd-pre'>";
|
||||||
echo "rrdtool graph $graphfile $rrd_options";
|
echo "rrdtool ".rrdtool_build_command("graph", $graphfile, $rrd_options);
|
||||||
echo "</pre>";
|
echo "</pre>";
|
||||||
$return = rrdtool_graph($graphfile, $rrd_options);
|
$return = rrdtool_graph($graphfile, $rrd_options);
|
||||||
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Output</p>";
|
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Output</p>";
|
||||||
|
|||||||
Reference in New Issue
Block a user