]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
tools: template_replace: esacpe braces
[pve-common.git] / src / PVE / Tools.pm
index 6254b2e653624880ab67fd35fcb581303caa6463..0f31fdbe6f4f98750be4b8e0c9098416cd6a85a9 100644 (file)
@@ -670,7 +670,7 @@ sub template_replace {
     return $tmpl if !$tmpl;
 
     my $res = '';
-    while ($tmpl =~ m/([^{]+)?({([^}]+)})?/g) {
+    while ($tmpl =~ m/([^{]+)?(\{([^}]+)\})?/g) {
        $res .= $1 if $1;
        $res .= ($data->{$3} || '-') if $2;
     }