]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks/Directory.pm
followup comment that we do not escape completely like systemd
[pve-storage.git] / 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;