summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-08-31 22:13:01 +0100
committerDerek Jennings <djennings@mageia.org>2013-08-31 22:13:01 +0100
commit8274752db10100ee224d08d935de582ea04ce744 (patch)
tree54ee2961a18c502475a84f2c1613e1f965c212a4 /common
parent3b385651fc16abd731e476ff71b571deaf31c2c1 (diff)
downloaddrakwizard-8274752db10100ee224d08d935de582ea04ce744.tar
drakwizard-8274752db10100ee224d08d935de582ea04ce744.tar.gz
drakwizard-8274752db10100ee224d08d935de582ea04ce744.tar.bz2
drakwizard-8274752db10100ee224d08d935de582ea04ce744.tar.xz
drakwizard-8274752db10100ee224d08d935de582ea04ce744.zip
fix detection of invalid domain names
Diffstat (limited to 'common')
-rw-r--r--common/Wizcommon.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index 34a94f48..f09341f8 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -72,7 +72,7 @@ sub test_host_domain {
if ($SHORTHOSTNAME =~ /localhost/) {
return 0, N("You need to readjust your hostname. 'localhost' is not a correct hostname for a DNS server. Hostname must be a FQDN: Fully Qualified Domain Name");
}
- if (member($DOMAINNAME, qw(localdomain (none))) && -z $DOMAINNAME) {
+ if (member($DOMAINNAME, qw(localdomain (none))) || $DOMAINNAME eq '') {
return 0, N("You need to readjust your domainname. For a DNS server you need a correct domainname, not equal to localdomain or none. Hostname must be a FQDN: Fully Qualified Domain Name. Launch drakconnect to adjust it.");
}
return 1;