diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index f734e1d1..78eb1775 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -234,6 +234,11 @@ class ConfigurationManager * @throws InvalidSettingConfigurationException */ public function SetDomain(string $domain) : void { + // Validate that at least one dot is contained + if (strpos($domain, '.') === false) { + throw new InvalidSettingConfigurationException("Domain must contain at least one dot!"); + } + // Validate domain if (!filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) { throw new InvalidSettingConfigurationException("Domain is not a valid domain!");