8272702: Resolving URI relative path with no / may lead to incorrect toString

This commit is contained in:
KIRIYAMA Takuya 2022-08-09 19:57:12 +09:00
parent 233e5d2365
commit d64e86b71f

View File

@ -2106,7 +2106,7 @@ public final class URI
// -- Normalization, resolution, and relativization --
// RFC2396 5.2 (6)
private static String resolvePath(String base, String child)
private static String resolvePath(String base, String child, boolean absolute)
{
int i = base.lastIndexOf('/');
int cn = child.length();