Re:Bug in Lynx's SSL certificate validation – leaks password...
by admax88q on Saturday August 07, 2021 @11:02PM
(#28103893)
You don't need to validate the hostnamez you can safely leave that for name resolution libraries. You just need to properly separate the user info from the host name and port. Which is pretty simply defined in the grammar.
[ Parent
| on HN ]
Re:Bug in Lynx's SSL certificate validation – leaks password...
by nly on Sunday August 08, 2021 @10:39AM
(#28107039)
That depends on your use case. If you're trying to check the hostname against some sort of whitelist or blacklist you're going to want to normalize it. Then you have all kinds of fun like IDN to deal with.