diff --git a/library/Icinga/Util/GlobFilter.php b/library/Icinga/Util/GlobFilter.php index f0dde9f97..15cbe0b99 100644 --- a/library/Icinga/Util/GlobFilter.php +++ b/library/Icinga/Util/GlobFilter.php @@ -86,8 +86,10 @@ class GlobFilter unset($pattern[$i]); } elseif ($subPattern === '.*.*') { $pattern[$i] = '**'; - } else { + } elseif ($subPattern === '.*') { $pattern[$i] = '/^' . $subPattern . '$/'; + } else { + $pattern[$i] = '/^' . trim($subPattern) . '$/i'; } }