5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-08 21:17:52 +03:00

fix deprecated unescaped left brace in regex

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-12-14 14:06:08 +01:00
parent eb50bb6141
commit b3b0025bd6

View File

@ -36,7 +36,7 @@ sub read_state {
return {} if $raw eq '';
# untaint $raw
if ($raw =~ m/^({.*})$/) {
if ($raw =~ m/^(\{.*\})$/) {
return decode_json($1);
}