mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8298667: Improved path handling
Reviewed-by: rhalade, alanb
This commit is contained in:
parent
ec119716e5
commit
a0f7ae1a95
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue