Bug #6122 ยป namecheap-host-fix-6122.patch
src/usr/local/www/services_dyndns_edit.php | ||
---|---|---|
147 | 147 | |
148 | 148 |
if (isset($_POST['host']) && in_array("host", $reqdfields)) { |
149 | 149 |
/* Namecheap can have a @. in hostname */ |
150 |
if ($pconfig['type'] == "namecheap" && substr($_POST['host'], 0, 2) == '@.') {
|
|
151 |
$host_to_check = substr($_POST['host'], 2);
|
|
150 |
if ($pconfig['type'] == "namecheap" && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
|
|
151 |
$host_to_check = $_POST['domainname'];
|
|
152 | 152 |
} else { |
153 | 153 |
$host_to_check = $_POST['host']; |
154 | 154 |