aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-02-03 14:14:03 -0500
committerjim-p <jimp@pfsense.org>2015-02-03 14:14:03 -0500
commit08ed466fe53f97da1b95ff8088a9ae61b11a6b3d (patch)
tree25fcebf44f7bbb56c2265e01b3403f39d29745fb /config/vnstat2/www
parent250baa204965f90a6914a51e951caa5421eb4be2 (diff)
downloadpfsense-packages-08ed466fe53f97da1b95ff8088a9ae61b11a6b3d.tar.gz
pfsense-packages-08ed466fe53f97da1b95ff8088a9ae61b11a6b3d.tar.bz2
pfsense-packages-08ed466fe53f97da1b95ff8088a9ae61b11a6b3d.zip
Various fixes for vnstat2 for 2.2 and others. Version bump for new binaries.
Diffstat (limited to 'config/vnstat2/www')
-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}");
?>