From 914531a28f9fabb13869d9cea0e196731193de2c Mon Sep 17 00:00:00 2001 From: Anthony Ruhier Date: Thu, 21 Feb 2019 22:27:15 +0100 Subject: [PATCH] Fix display of rrdtool command using the existing dedicated function (#9846) Sanitize the command before printing it --- html/includes/graphs/graph.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 6a07333e43..cd961e43b6 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -119,7 +119,7 @@ if ($error_msg) { echo "
"; echo "

RRDTool Command

"; echo "
";
-        echo "rrdtool graph $graphfile $rrd_options";
+        echo "rrdtool ".rrdtool_build_command("graph", $graphfile, $rrd_options);
         echo "
"; $return = rrdtool_graph($graphfile, $rrd_options); echo "

RRDTool Output

";