aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/www/vnstat2_img.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/vnstat2/www/vnstat2_img.php')
-rw-r--r--config/vnstat2/www/vnstat2_img.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/vnstat2/www/vnstat2_img.php b/config/vnstat2/www/vnstat2_img.php
index 85644309..a83c3b06 100644
--- a/config/vnstat2/www/vnstat2_img.php
+++ b/config/vnstat2/www/vnstat2_img.php
@@ -1,6 +1,6 @@
<?php
require_once("guiconfig.inc");
-$image = $_GET['image'];
+$image = basename($_GET['image']);
header("Content-type: image/png");
-readfile("/tmp/$image");
+readfile("/tmp/vnstat/{$image}");
?>