diff --git a/customer_domains.php b/customer_domains.php index 66fbc0e1..6849c0e8 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -277,6 +277,13 @@ if ($page == 'overview') { $completedomain = $subdomain . '.' . $domain; + if (Settings::Get('system.validate_domain') && ! validateDomain($completedomain)) { + standard_error(array( + 'stringiswrong', + 'mydomain' + )); + } + if ($completedomain == Settings::Get('system.hostname')) { standard_error('admin_domain_emailsystemhostname'); }