mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Do not mangle RADB queries with IDN processing
This commit is contained in:
parent
4190279e0e
commit
420fff7ee6
6
whois.c
6
whois.c
@ -1265,6 +1265,12 @@ char *normalize_domain(const char *dom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined HAVE_LIBIDN || defined HAVE_LIBIDN2
|
#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 */
|
/* find the start of the last word if there are spaces in the query */
|
||||||
for (p = ret; *p; p++)
|
for (p = ret; *p; p++)
|
||||||
if (*p == ' ')
|
if (*p == ' ')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user