]> git.proxmox.com Git - pve-storage.git/commitdiff
followup comment that we do not escape completely like systemd
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Feb 2019 15:30:46 +0000 (16:30 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Feb 2019 15:30:46 +0000 (16:30 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Disks/Directory.pm

index 630d1cd12989427d94740beb070206e4b2d82cc7..645c73c09c1c1ed03ae5fd445c4eaa512f01d031 100644 (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;