aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authorPim van den Berg2013-08-24 21:50:38 +0200
committerPim van den Berg2013-08-24 21:50:38 +0200
commitaf4f74e89eea5358a4d11e96b95526d01d1842fd (patch)
tree63d0a3661adf1f58266eb5bf374ea99f9677597f /type
parenttype/default: urlencode filenames when using canvas (diff)
downloadapt-panopticon_cgp-af4f74e89eea5358a4d11e96b95526d01d1842fd.zip
apt-panopticon_cgp-af4f74e89eea5358a4d11e96b95526d01d1842fd.tar.gz
apt-panopticon_cgp-af4f74e89eea5358a4d11e96b95526d01d1842fd.tar.bz2
apt-panopticon_cgp-af4f74e89eea5358a4d11e96b95526d01d1842fd.tar.xz
type/default: escape spaces in filenames
Diffstat (limited to 'type')
-rw-r--r--type/Default.class.php3
1 files changed, 3 insertions, 0 deletions
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 {
125 $file = 'rrd.php/' . str_replace($this->datadir . '/', '', $file); 125 $file = 'rrd.php/' . str_replace($this->datadir . '/', '', $file);
126 # rawurlencode all but / 126 # rawurlencode all but /
127 $file = str_replace('%2F', '/', rawurlencode($file)); 127 $file = str_replace('%2F', '/', rawurlencode($file));
128 } else {
129 # escape spaces
130 $file = str_replace(' ', '\ ', $file);
128 } 131 }
129 return $this->rrd_escape($file); 132 return $this->rrd_escape($file);
130 } 133 }