Fix display of rrdtool command using the existing dedicated function (#9846)

Sanitize the command before printing it
This commit is contained in:
Anthony Ruhier
2019-02-21 22:27:15 +01:00
committed by PipoCanaja
parent c60d9aeca7
commit 914531a28f

View File

@@ -119,7 +119,7 @@ if ($error_msg) {
echo "<div class='infobox'>";
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Command</p>";
echo "<pre class='rrd-pre'>";
echo "rrdtool graph $graphfile $rrd_options";
echo "rrdtool ".rrdtool_build_command("graph", $graphfile, $rrd_options);
echo "</pre>";
$return = rrdtool_graph($graphfile, $rrd_options);
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Output</p>";