diff --git a/www/gengraph.php b/www/gengraph.php index 2ad8948..71803b7 100644 --- a/www/gengraph.php +++ b/www/gengraph.php @@ -53,7 +53,7 @@ if ($vertical_label) { $cmd .= "--vertical-label '<- OUT | IN ->' "; } -if($showtitledetail && $_GET['dname'] != "") +if($showtitledetail && @$_GET['dname'] != "") $cmd .= "--title " . escapeshellarg($_GET['dname']) . " "; else if (isset($_GET['v']) && is_numeric($_GET['v'])) diff --git a/www/linkgraph.php b/www/linkgraph.php index 51f681a..d5de62b 100644 --- a/www/linkgraph.php +++ b/www/linkgraph.php @@ -65,9 +65,9 @@ header("Content-Type: image/png"); $width = $default_graph_width; $height = $default_graph_height; -if ($_GET['width']) +if (@$_GET['width']) $width = (int)$_GET['width']; -if ($_GET['height']) +if (@$_GET['height']) $height = (int)$_GET['height']; $knownlinks = getknownlinks(); @@ -89,7 +89,7 @@ $cmd = "$rrdtool graph - " . if (!$compat_rrdtool12) $cmd .= "--full-size-mode "; -if($showtitledetail && $_GET['dname'] != "") +if($showtitledetail && @$_GET['dname'] != "") $cmd .= "--title " . escapeshellarg($_GET['dname']) . " "; else if (isset($_GET['v']) && is_numeric($_GET['v']))