IcingaObjectFieldForm: be case insensitive

fixes #1213
This commit is contained in:
Thomas Gelf 2017-10-05 13:12:13 +02:00
parent 1c0b06a1f8
commit f9e701d51d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class IcingaObjectFieldForm extends DirectorObjectForm
$val = $arg->argument_value;
// TODO: create var::extractMacros or so
if (preg_match_all('/(\$[a-z0-9_]+\$)/', $val, $m, PREG_PATTERN_ORDER)) {
if (preg_match_all('/(\$[a-z0-9_]+\$)/i', $val, $m, PREG_PATTERN_ORDER)) {
foreach ($m[1] as $val) {
if (array_key_exists($val, $blacklistedVars)) {
$id = $blacklistedVars[$val];