diff options
author | jim-p <jim@pingle.org> | 2010-08-31 00:03:20 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-08-31 00:03:20 -0400 |
commit | c305abd593b296f1a125b8e8f5ebc5a047309efb (patch) | |
tree | 0f8b18f0449ef9f5e6080b46839078488b717478 /etc/inc/dyndns.class | |
parent | 61c30081675657a9eb76b309cde2b75eeb5d5511 (diff) | |
download | pfsense-c305abd593b296f1a125b8e8f5ebc5a047309efb.zip pfsense-c305abd593b296f1a125b8e8f5ebc5a047309efb.tar.gz |
Fix success test.
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r-- | etc/inc/dyndns.class | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 0168d3e..cb0420e 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -739,8 +739,11 @@ if (preg_match("/internal server error/i", $data)) { $status = "phpDynDNS: (Error) Server side error."; } else if (preg_match('/success/i', $data)) { - $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; - $successful_update = true; + $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; + $successful_update = true; + } else if (preg_match('/<Done>true<\/Done>/i', $data)) { + $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; + $successful_update = true; } else { $status = "phpDynDNS: (Unknown Response)"; log_error("phpDynDNS: PAYLOAD: {$data}"); |