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
|
@ -1,3 +1,8 @@
|
||||||
|
2001-03-19 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
|
* java/net/URLStreamHandler.java (parseURL): Fix bug which would
|
||||||
|
"canonicalize" "../../xxx" to "/xxx".
|
||||||
|
|
||||||
2001-03-19 Mark Wielaard <mark@klomp.org>
|
2001-03-19 Mark Wielaard <mark@klomp.org>
|
||||||
|
|
||||||
* java/util/ArrayList.java: Remove RCS keywords from comments
|
* java/util/ArrayList.java: Remove RCS keywords from comments
|
||||||
|
|
|
@ -111,7 +111,7 @@ public abstract class URLStreamHandler
|
||||||
if (previous >= 0)
|
if (previous >= 0)
|
||||||
file = file.substring(0, previous) + file.substring(index + 3);
|
file = file.substring(0, previous) + file.substring(index + 3);
|
||||||
else
|
else
|
||||||
file = file.substring(index + 3);
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
u.set(u.getProtocol(), host, port, file, u.getRef());
|
u.set(u.getProtocol(), host, port, file, u.getRef());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue