Do not mangle RADB queries with IDN processing

This commit is contained in:
Marco d'Itri 2025-05-03 19:07:58 +02:00
parent 4190279e0e
commit 420fff7ee6
No known key found for this signature in database
GPG Key ID: CB3EC33AE1DED781

View File

@ -1265,6 +1265,12 @@ char *normalize_domain(const char *dom)
}
#if defined HAVE_LIBIDN || defined HAVE_LIBIDN2
/* A leading ! means that this probably is a RADB query, so skip IDN
* processing because it would lower-case the command characters.
*/
if (*ret == '!')
return ret;
/* find the start of the last word if there are spaces in the query */
for (p = ret; *p; p++)
if (*p == ' ')