From 62415f3e6f694f8c323472661f2426999a8baac0 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 22 Mar 2014 17:19:24 +0100 Subject: type/Default: escape brackets in identifier before glob --- type/Default.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'type/Default.class.php') 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 { $this->args['type'], strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance'] ); + $identifier = str_replace(array('[', ']'), array('\[', '\]'), $identifier); $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*'; -- cgit v1.1