summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorTiago Barrionuevo <tiago.bar@openmailbox.org>2016-01-30 03:16:12 -0200
committerTiago Barrionuevo <tiago.bar@openmailbox.org>2016-01-30 03:16:12 -0200
commit70a84c25760dca8a3db8b78ee273216c522cc0e7 (patch)
tree1e4805fe68e84e0afb76ca2fa4d2ae778aceb48e /src/usr/local/www/services_dyndns_edit.php
parent68e82ecb26548ca51d9e9fd112c1ec422d0849f0 (diff)
downloadpfsense-70a84c25760dca8a3db8b78ee273216c522cc0e7.zip
pfsense-70a84c25760dca8a3db8b78ee273216c522cc0e7.tar.gz
Dynamic DNS URL for NO-IP needs to be updated.
Diffstat (limited to 'src/usr/local/www/services_dyndns_edit.php')
-rw-r--r--src/usr/local/www/services_dyndns_edit.php7
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 e28dc3e..52e90e9 100644
--- a/src/usr/local/www/services_dyndns_edit.php
+++ b/src/usr/local/www/services_dyndns_edit.php
@@ -146,6 +146,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") {
OpenPOWER on IntegriCloud