mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-20 12:24:30 +02:00
PropertyModifierLConfCustomVar: trim left side
This commit is contained in:
parent
a7ff250ecd
commit
ff4e953a11
@ -37,7 +37,7 @@ class PropertyModifierLConfCustomVar extends PropertyModifierHook
|
|||||||
protected function extractLConfVar($value, $vars)
|
protected function extractLConfVar($value, $vars)
|
||||||
{
|
{
|
||||||
list($key, $val) = preg_split('/ /', $value, 2);
|
list($key, $val) = preg_split('/ /', $value, 2);
|
||||||
$key = rtrim($key, '_');
|
$key = ltrim($key, '_');
|
||||||
$vars->$key = $val;
|
$vars->$key = $val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user