12 Nov
2024
12 Nov
'24
3:07 p.m.
Jacek Caban (@jacek) commented about dlls/urlmon/uri.c:
+ { + /* Anything less than 3 ASCII characters is considered part * of the TLD name. * Ex: ak.uk -> Has no domain name. */ - return; + BOOL all_ascii = TRUE; + + for(p = host; p < last_tld; p++) { + if(!is_ascii(*p)) { + all_ascii = FALSE; + break; + } + } + + if(all_ascii) You may check for `p == last_tld` and drop `all_ascii` variable.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6796#note_87222