mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user