Project

General

Profile

Bug #6122 ยป namecheap-host-fix-6122.patch

Jim Pingle, 04/13/2016 09:32 AM

View differences:

src/usr/local/www/services_dyndns_edit.php
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'];
    (1-1/1)