]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Fixing class MailConfiguration in module pp_admintools.mail_config
authorFrank Brehm <frank@brehm-online.com>
Wed, 18 May 2022 11:53:19 +0000 (13:53 +0200)
committerFrank Brehm <frank@brehm-online.com>
Wed, 18 May 2022 11:53:19 +0000 (13:53 +0200)
lib/pp_admintools/mail_config.py

index c006ae874af3613d14567f5dd12f2a0e41b0c182..f55d17b161ba70b05f8a3f20d31b789e4b214c51 100644 (file)
@@ -75,7 +75,7 @@ class MailConfiguration(BaseMultiConfig):
         default_domain = DEFAULT_DOMAIN
     else:
         default_domain = default_domain.strip()
-        if default_domain == '':
+        if not MailAddress.re_valid_domain.match(default_domain):
             default_domain = DEFAULT_DOMAIN
 
     current_user_name = pwd.getpwuid(os.getuid()).pw_name