From af4f74e89eea5358a4d11e96b95526d01d1842fd Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 24 Aug 2013 21:50:38 +0200 Subject: type/default: escape spaces in filenames --- type/Default.class.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'type') diff --git a/type/Default.class.php b/type/Default.class.php index 0d3971f..e1b8835 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -125,6 +125,9 @@ class Type_Default { $file = 'rrd.php/' . str_replace($this->datadir . '/', '', $file); # rawurlencode all but / $file = str_replace('%2F', '/', rawurlencode($file)); + } else { + # escape spaces + $file = str_replace(' ', '\ ', $file); } return $this->rrd_escape($file); } -- cgit v1.1