mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-21 12:54:26 +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)
|
||||
{
|
||||
list($key, $val) = preg_split('/ /', $value, 2);
|
||||
$key = rtrim($key, '_');
|
||||
$key = ltrim($key, '_');
|
||||
$vars->$key = $val;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user