InetAddresses.forString(String)
parses non-ASCII decimals
#5682
Labels
InetAddresses.forString(String)
parses non-ASCII decimals
#5682
The method
InetAddresses.forString(String)
parses non-ASCII decimals due to its usage ofCharacter.digit(...)
.For example:
While it appears there is no RFC which strictly specifies the syntax, related RFCs, such as RFC 3986 specifying the URI syntax, explicitly only allow ASCII
0
-9
(respectivelyf
for IPv6).Additionally there is this draft which also only permits ASCII digits.
Note however, that Java's
InetAddress.getByName(String)
does support non-ASCII digits as well, though it is not clear whether that is intended or just an oversight.(This issue might be relevant for #3417)
The text was updated successfully, but these errors were encountered: