dnsexit2: Fix compatibility with old versions of Perl
The non-destructive substitution modifier wasn't added until Perl v5.14.0.
This commit is contained in:
parent
962abfbbc3
commit
2ac61250e5
1 changed files with 1 additions and 1 deletions
|
@ -4035,7 +4035,7 @@ sub dnsexit2_update_host {
|
|||
failed("Full reply\n%s", $reply) unless opt('verbose');
|
||||
return;
|
||||
}
|
||||
my $body = ($reply =~ s/^.*?\r?\n\r?\n//sr);
|
||||
(my $body = $reply) =~ s/^.*?\r?\n\r?\n//s;
|
||||
my $response = eval { decode_json($body); };
|
||||
if (!$response) {
|
||||
failed("failed to parse response: $@");
|
||||
|
|
Loading…
Reference in a new issue