From bbed067864be4ee40f4300ba0686a0926c6ee2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ziemowit=20=C5=81=C4=85ski?= <15880281+zlaski@users.noreply.github.com> Date: Sat, 3 Jun 2023 06:43:08 +0000 Subject: [PATCH] Fix script failures on ZoneEdit --- ddclient.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 69f9c18..ab6e5c1 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4741,7 +4741,7 @@ sub nic_zoneedit1_update { my @reply = split /\n/, $reply; foreach my $line (@reply) { - if ($line =~ /^[^<]*<(SUCCESS|ERROR)\s+([^>]+)>(.*)/) { + if ($h && $line =~ /^[^<]*<(SUCCESS|ERROR)\s+([^>]+)>(.*)/) { my ($status, $assignments, $rest) = ($1, $2, $3); my ($left, %var) = parse_assignments($assignments);