diff options
Diffstat (limited to '')
-rw-r--r-- | type/Default.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
122 | 122 | ||
123 | function parse_filename($file) { | 123 | function parse_filename($file) { |
124 | if ($this->graph_type == 'canvas') { | 124 | if ($this->graph_type == 'canvas') { |
125 | $file = 'rrd.php/' . str_replace($this->datadir . '/', '', $file); | 125 | $file = str_replace($this->datadir . '/', '', $file); |
126 | # rawurlencode all but / | 126 | # rawurlencode all but / |
127 | $file = str_replace('%2F', '/', rawurlencode($file)); | 127 | $file = 'rrd.php?' . str_replace('%2F', '/', rawurlencode($file)); |
128 | } else { | 128 | } else { |
129 | # escape characters | 129 | # escape characters |
130 | $file = str_replace(array(' ', '(', ')'), array('\ ', '\(', '\)'), $file); | 130 | $file = str_replace(array(' ', '(', ')'), array('\ ', '\(', '\)'), $file); |