]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix writing config for schedule and message names with space
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 1 Aug 2017 16:51:44 +0000 (18:51 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 1 Aug 2017 16:51:44 +0000 (18:51 +0200)
gui/baculum/protected/API/Class/BaculaSetting.php

index b662f12017d17d32ff9d84efd0af38bcb02f8d9f..0b7dbaf023335bfbce03a23ee19bb3bab55658fe 100644 (file)
@@ -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);
                                }
                        }