diff options
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/services_dyndns_edit.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php index 8f69251..d76809f 100644 --- a/src/usr/local/www/services_dyndns_edit.php +++ b/src/usr/local/www/services_dyndns_edit.php @@ -151,6 +151,13 @@ if ($_POST) { $host_to_check = substr($_POST['host'], 2); } else { $host_to_check = $_POST['host']; + + /* No-ip (and maybe others) can have a @ in hostname */ + $last_to_check = strrpos($host_to_check, '@'); + if ($last_to_check !== false) { + $host_to_check = substr_replace($host_to_check, '.', $last_to_check, 1); + } + unset($last_to_check); } if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6") { |