diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index 050b3c228a7..e2c2b9c5e9a 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -93,7 +93,7 @@ * - _detectChange() * - _debug() * +----------------------------------------------------+ - * All-Inkl - Last Tested: 12 November 2016 + * All-Inkl - Last Tested: 30 May 2025 * Amazon Route 53 - Last Tested: 04 February 2017 * Azure DNS - Last Tested: 08 March 2018 * City Network - Last Tested: 13 November 2013 @@ -2978,19 +2978,17 @@ } break; case 'all-inkl': - if (preg_match('/good\s' . $this->_dnsIP . '/i', $data)) { - $status = $status_intro . $success_str . gettext("IP Address Changed Successfully!") . " (" . $this->_dnsIP . ")"; - $successful_update = true; - } else if (preg_match('/good/i', $data)) { - $status = $status_intro . $error_str . gettext("Result did not match."); - } else if (preg_match("/\s401\sUnauthorized/i", $header)) { + if (preg_match('/good/i', $data)) { + $status = $status_intro . $success_str . gettext("IP Address Changed Successfully!") . " (" . $this->_dnsIP . ")"; + $successful_update = true; + } else if ($http_code == 401) { $status = $status_intro . $error_str . gettext("Invalid username or password"); } else { - $status = $status_intro . "(" . gettext("Unknown Response") . ")"; - log_error($status_intro . gettext("PAYLOAD:") . " " . $header . $data); - $this->_debug($data); - $this->_debug($header); + $status = $status_intro . "(" . gettext("Unknown Response") . ")"; + log_error($status_intro . gettext("PAYLOAD:") . " " . $header . $data); + $this->_debug($data); + $this->_debug($header); } break; case 'hover':