From 34bdd032c191b503520f9cce8e4d64803031c3fe Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 20 May 2013 21:37:46 +0200 Subject: remove dependency on mod_rewrite for rrd.php Use $_SERVER['PATH_INFO'] instead. --- rrd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rrd.php') diff --git a/rrd.php b/rrd.php index 58614a0..a6f341a 100644 --- a/rrd.php +++ b/rrd.php @@ -4,7 +4,7 @@ require_once 'conf/common.inc.php'; require_once 'inc/functions.inc.php'; require_once 'inc/html.inc.php'; -if ($file = validateRRDPath($CONFIG['datadir'], $_GET['path'])) { +if ($file = validateRRDPath($CONFIG['datadir'], $_SERVER['PATH_INFO'])) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header("Expires: " .date(DATE_RFC822,strtotime($CONFIG['cache']." seconds"))); -- cgit v1.1