summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-04-13 12:07:04 -0400
committerjim-p <jimp@pfsense.org>2016-04-13 12:07:43 -0400
commitcc0b9f915ec4cea6feae8bcbbaa97c5e50cde7af (patch)
tree9f7234e9c82cddef5445ed444aacd9d0d3f0692b /src/usr/local/www/services_dyndns_edit.php
parent3fe334c697f0817626e6912e4a42e6ad12c46349 (diff)
downloadpfsense-cc0b9f915ec4cea6feae8bcbbaa97c5e50cde7af.zip
pfsense-cc0b9f915ec4cea6feae8bcbbaa97c5e50cde7af.tar.gz
Fix Namecheap DynDNS host parsing for @, fixes #6122
Diffstat (limited to 'src/usr/local/www/services_dyndns_edit.php')
-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