Do not apply IDNA conversion to RegEx domains (#2336)

This commit is contained in:
DL6ER
2022-09-08 07:43:41 +02:00
committed by GitHub
+8 -7
View File
@@ -596,14 +596,15 @@ if ($_POST['action'] == 'get_groups') {
continue;
}
$input = $domain;
// Convert domain name to IDNA ASCII form for international domains
// Skip this for the root zone `.`
if ($domain != '.') {
$domain = convertUnicodeToIDNA($domain);
}
if ($_POST['type'] != '2' && $_POST['type'] != '3') {
// If not adding a RegEx, we convert the domain lower case and check whether it is valid
// If not adding a RegEx....
$input = $domain;
// Convert domain name to IDNA ASCII form for international domains
// Skip this for the root zone `.`
if ($domain != '.') {
$domain = convertUnicodeToIDNA($domain);
}
// convert the domain lower case and check whether it is valid
$domain = strtolower($domain);
$msg = '';
if (!validDomain($domain, $msg)) {