summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/services_dyndns_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php
index 5ca0714..ccac09a 100644
--- a/src/usr/local/www/services_dyndns_edit.php
+++ b/src/usr/local/www/services_dyndns_edit.php
@@ -147,8 +147,8 @@ if ($_POST) {
if (isset($_POST['host']) && in_array("host", $reqdfields)) {
/* Namecheap can have a @. in hostname */
- if ($pconfig['type'] == "namecheap" && substr($_POST['host'], 0, 2) == '@.') {
- $host_to_check = substr($_POST['host'], 2);
+ if ($pconfig['type'] == "namecheap" && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
+ $host_to_check = $_POST['domainname'];
} else {
$host_to_check = $_POST['host'];
OpenPOWER on IntegriCloud