aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2014-03-22 17:19:24 +0100
committerPim van den Berg2014-03-22 17:19:24 +0100
commit62415f3e6f694f8c323472661f2426999a8baac0 (patch)
tree84e8484c3e3c8ccfba9124a31b27f367d11598d1
parentMerge pull request #51 from bobonlog/master (diff)
downloadapt-panopticon_cgp-62415f3e6f694f8c323472661f2426999a8baac0.zip
apt-panopticon_cgp-62415f3e6f694f8c323472661f2426999a8baac0.tar.gz
apt-panopticon_cgp-62415f3e6f694f8c323472661f2426999a8baac0.tar.bz2
apt-panopticon_cgp-62415f3e6f694f8c323472661f2426999a8baac0.tar.xz
type/Default: escape brackets in identifier before glob
-rw-r--r--type/Default.class.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 2cd8560..ce47cf3 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -159,6 +159,7 @@ class Type_Default {
159 $this->args['type'], 159 $this->args['type'],
160 strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance'] 160 strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance']
161 ); 161 );
162 $identifier = str_replace(array('[', ']'), array('\[', '\]'), $identifier);
162 163
163 $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*'; 164 $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*';
164 165