From: Marcin Haba Date: Tue, 1 Aug 2017 16:51:44 +0000 (+0200) Subject: baculum: Fix writing config for schedule and message names with space X-Git-Tag: Release-9.0.3~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2b647cfb904f1bda25b676d089708fcd54aff73;p=bacula%2Fbacula baculum: Fix writing config for schedule and message names with space --- diff --git a/gui/baculum/protected/API/Class/BaculaSetting.php b/gui/baculum/protected/API/Class/BaculaSetting.php index b662f12017..0b7dbaf023 100644 --- a/gui/baculum/protected/API/Class/BaculaSetting.php +++ b/gui/baculum/protected/API/Class/BaculaSetting.php @@ -244,11 +244,11 @@ class BaculaSetting extends APIModule { } $resource[$resource_type][$directive_name][] = implode(' ', $value); } else { - $resource[$resource_type][$directive_name][] = $directive_value[$i]; + $resource[$resource_type][$directive_name][] = $this->formatDirectiveValue($directive_value[$i]); } } } else { - $resource[$resource_type][$directive_name] = $directive_value; + $resource[$resource_type][$directive_name] = $this->formatDirectiveValue($directive_value); } } @@ -266,7 +266,7 @@ class BaculaSetting extends APIModule { $resource[$resource_type][$directive_value[$i]['Type']] = implode(' = ', $value); } } else { - $resource[$resource_type][$directive_name] = $directive_value; + $resource[$resource_type][$directive_name] = $this->formatDirectiveValue($directive_value); } }