From 76abad0a96723f592b972b495a0c10139aaaee8b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 1 Jul 2018 18:19:11 -0400 Subject: [PATCH] escape {} in regexp --- scripts/ZoneMinder/lib/ZoneMinder/General.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/General.pm b/scripts/ZoneMinder/lib/ZoneMinder/General.pm index 692af30d4..fb9e1e44b 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/General.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/General.pm @@ -654,7 +654,7 @@ sub jsonDecode { $out =~ s/=>null/=>undef/g; $out =~ s/`/'/g; $out =~ s/qx/qq/g; - ( $out ) = $out =~ m/^({.+})$/; # Detaint and check it's a valid object syntax + ( $out ) = $out =~ m/^(\{.+\})$/; # Detaint and check it's a valid object syntax my $result = eval $out; Fatal( $@ ) if ( $@ ); return( $result );