Fix security issue

This commit is contained in:
Manuel Kasper 2013-12-06 09:09:56 +01:00
parent afe5f582d1
commit 1856c64f3d

View File

@ -71,7 +71,7 @@ $cmd = "$rrdtool graph - " .
"--slope-mode --alt-autoscale -u 0 -l 0 --imgformat=PNG --base=1000 --height=$height --width=$width " .
"--color BACK#ffffff00 --color SHADEA#ffffff00 --color SHADEB#ffffff00 ";
if (@$_GET['v'])
if (isset($_GET['v']) && is_numeric($_GET['v']))
$cmd .= "--title IPv" . $_GET['v'] . " ";
/* geneate RRD DEFs */