8298667: Improved path handling

Reviewed-by: rhalade, alanb
This commit is contained in:
Brian Burkhalter 2023-01-05 18:27:31 +00:00 committed by Henry Jen
parent ec119716e5
commit a0f7ae1a95

@ -75,6 +75,10 @@ class UnixUriUtils {
int pos = 0;
while (pos < len) {
char c = p.charAt(pos++);
if ((c == '/') && (pos < len) && (p.charAt(pos) == '/')) {
// skip redundant slashes
continue;
}
byte b;
if (c == '%') {
assert (pos+2) <= len;