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 --- type/Default.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type/Default.class.php') diff --git a/type/Default.class.php b/type/Default.class.php index 5e19e73..c4fa8a9 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -122,9 +122,9 @@ class Type_Default { function parse_filename($file) { if ($this->graph_type == 'canvas') { - $file = 'rrd.php/' . str_replace($this->datadir . '/', '', $file); + $file = str_replace($this->datadir . '/', '', $file); # rawurlencode all but / - $file = str_replace('%2F', '/', rawurlencode($file)); + $file = 'rrd.php?' . str_replace('%2F', '/', rawurlencode($file)); } else { # escape characters $file = str_replace(array(' ', '(', ')'), array('\ ', '\(', '\)'), $file); -- cgit v1.1