followup comment that we do not escape completely like systemd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-02-20 16:30:46 +01:00
parent 43e04c681e
commit fc31916384

View File

@ -90,6 +90,8 @@ my $write_ini = sub {
sub systemd_escape {
my ($val) = @_;
# NOTE: this is not complete, but enough for our needs. normally all
# characters which are not alpha-numerical, '.' or '_' would need escaping
$val =~ s/\-/\\x2d/g;
return $val;