Do not apply IDNA conversion to regex domains

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-09-07 21:43:28 +02:00
parent dbd87d8833
commit e5ce53446c

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)) {