URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx".
* java/net/URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx". From-SVN: r40641
This commit is contained in:
parent
86c9776ba2
commit
b90f4049d3
2 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,7 @@ public abstract class URLStreamHandler
|
|||
if (previous >= 0)
|
||||
file = file.substring(0, previous) + file.substring(index + 3);
|
||||
else
|
||||
file = file.substring(index + 3);
|
||||
break;
|
||||
}
|
||||
|
||||
u.set(u.getProtocol(), host, port, file, u.getRef());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue