diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-07 19:07:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-07 19:07:39 +0000 |
commit | 9b9e5f097cc95566ddb723d7389649ef170bd302 (patch) | |
tree | 66e65ef452ec9a2a5b7dc4de552d593a180db62a /etc/inc/dyndns.class | |
parent | 6562edb8cc6b4251988cbeed9bd69f11e7726553 (diff) | |
download | pfsense-9b9e5f097cc95566ddb723d7389649ef170bd302.zip pfsense-9b9e5f097cc95566ddb723d7389649ef170bd302.tar.gz |
Seperate REGEX check into 2 checks
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r-- | etc/inc/dyndns.class | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 0182d13..e8e8556 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -400,11 +400,16 @@ case 'hn': break; case 'zoneedit': - if (preg_match('/{700,799}/i', $data)) { - $status = "phpDynDNS: (Error) Update Failed!"; - } else if (preg_match('/{200,201}/i', $data)) { + if (preg_match('/799/i', $data)) { + $status = "phpDynDNS: (Error 799) Update Failed!"; + } else if (preg_match('/700}/i', $data)) { + $status = "phpDynDNS: (Error 700) Update Failed!"; + } else if (preg_match('/200/i', $data)) { $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; $successful_update = true; + } else if (preg_match('/201/i', $data)) { + $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; + $successful_update = true; } else { $status = "phpDynDNS: (Unknown Response)"; log_error("phpDynDNS: PAYLOAD: {$data}"); |