summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_dyndns_edit.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php
index d76809f..9cdf20e 100644
--- a/src/usr/local/www/services_dyndns_edit.php
+++ b/src/usr/local/www/services_dyndns_edit.php
@@ -152,12 +152,15 @@ if ($_POST) {
} 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);
+ /* No-ip can have a @ in hostname */
+ if (substr($pconfig['type'], 0, 4) == "noip") {
+ $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);
}
- unset($last_to_check);
}
if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6") {
OpenPOWER on IntegriCloud