Fixed issue with listing the domain without 'domain' parameter
This commit is contained in:
@@ -417,7 +417,7 @@ foreach my $d (@DNSDomain) {
|
|||||||
if ($d <0) { $d = join('.', splice(@{[ split(/\./, $cgi->virtual_host) ]}, $d)); }
|
if ($d <0) { $d = join('.', splice(@{[ split(/\./, $cgi->virtual_host) ]}, $d)); }
|
||||||
else { $d = join('.', splice(@{[ split(/\./, $host) ]}, ($d) ? -$d : 1)); }
|
else { $d = join('.', splice(@{[ split(/\./, $host) ]}, ($d) ? -$d : 1)); }
|
||||||
}
|
}
|
||||||
$dnsdomain = $d if ($host && length($host) == length($d)+rindex($host,$d));
|
$dnsdomain = $d if (!$host || length($host) == length($d)+rindex($host,$d));
|
||||||
last if $dnsdomain;
|
last if $dnsdomain;
|
||||||
}
|
}
|
||||||
fail($PE, "No host name to act on specified", 400)
|
fail($PE, "No host name to act on specified", 400)
|
||||||
|
|||||||
Reference in New Issue
Block a user