diff options
| author | Pim van den Berg | 2014-03-22 17:19:24 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2014-03-22 17:19:24 +0100 |
| commit | 62415f3e6f694f8c323472661f2426999a8baac0 (patch) | |
| tree | 84e8484c3e3c8ccfba9124a31b27f367d11598d1 /type | |
| parent | Merge pull request #51 from bobonlog/master (diff) | |
| download | apt-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
Diffstat (limited to 'type')
| -rw-r--r-- | type/Default.class.php | 1 |
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 | ||
