aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2013-11-14 11:22:29 -0800
committerPim van den Berg2013-11-14 11:22:29 -0800
commit44b3850e39a9b8b0e76ccc3b41553bcaef3a3701 (patch)
treec7a7fc903b30279048f97a29ab798a42e8a4eae7
parentRevert "type: fix undefined index in ds_names[$source] before empty check" (diff)
parentEscape parentheses in filenames (diff)
downloadapt-panopticon_cgp-44b3850e39a9b8b0e76ccc3b41553bcaef3a3701.zip
apt-panopticon_cgp-44b3850e39a9b8b0e76ccc3b41553bcaef3a3701.tar.gz
apt-panopticon_cgp-44b3850e39a9b8b0e76ccc3b41553bcaef3a3701.tar.bz2
apt-panopticon_cgp-44b3850e39a9b8b0e76ccc3b41553bcaef3a3701.tar.xz
Merge pull request #32 from jbergstroem/parantheses_in_names
Escape parentheses in filenames
-rw-r--r--type/Default.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 57b505f..8704d06 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -126,8 +126,8 @@ class Type_Default {
126 # rawurlencode all but / 126 # rawurlencode all but /
127 $file = str_replace('%2F', '/', rawurlencode($file)); 127 $file = str_replace('%2F', '/', rawurlencode($file));
128 } else { 128 } else {
129 # escape spaces 129 # escape characters
130 $file = str_replace(' ', '\ ', $file); 130 $file = str_replace(array(' ', '(', ')'), array('\ ', '\(', '\)'), $file);
131 } 131 }
132 return $this->rrd_escape($file); 132 return $this->rrd_escape($file);
133 } 133 }