8298667: Improved path handling
Reviewed-by: rhalade, alanb
This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user