OSDN Git Service

* java/net/URLStreamHandler.java (parseURL): Fix bug which would
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2001 23:31:14 +0000 (23:31 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Mar 2001 23:31:14 +0000 (23:31 +0000)
"canonicalize" "../../xxx" to "/xxx".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40641 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/net/URLStreamHandler.java

index 7e1049b..e3c5c24 100644 (file)
@@ -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>
 
        * java/util/ArrayList.java: Remove RCS keywords from comments
index 0060b4e..2b646b4 100644 (file)
@@ -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());