mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 10:40:21 +00:00
Merge pull request #268 from nextcloud/fix/241/validate-ip-address
ip-addresses are not supported as domain
This commit is contained in:
commit
5b278ca261
1 changed files with 5 additions and 0 deletions
|
|
@ -126,6 +126,11 @@ class ConfigurationManager
|
||||||
throw new InvalidSettingConfigurationException("Domain is not in a valid format!");
|
throw new InvalidSettingConfigurationException("Domain is not in a valid format!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Validate that it is not an IP-address
|
||||||
|
if(filter_var($domain, FILTER_VALIDATE_IP)) {
|
||||||
|
throw new InvalidSettingConfigurationException("Please enter a domain and not an IP-address!");
|
||||||
|
}
|
||||||
|
|
||||||
$dnsRecordIP = gethostbyname($domain);
|
$dnsRecordIP = gethostbyname($domain);
|
||||||
|
|
||||||
// Validate IP
|
// Validate IP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue