From 82623b7658882006c7a08c4a8330d7ddab054a37 Mon Sep 17 00:00:00 2001 From: sepich Date: Mon, 10 Mar 2014 11:06:47 -0700 Subject: mod_rewrite final cleanup --- rrd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rrd.php') diff --git a/rrd.php b/rrd.php index 1b5997b..b4c7f68 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'], $_SERVER['PATH_INFO'])) { +if ( $file = validateRRDPath($CONFIG['datadir'], urldecode($_SERVER["QUERY_STRING"])) ) { 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