ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r708698 - /ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java
Date Tue, 28 Oct 2008 22:08:15 GMT
Author: maartenc
Date: Tue Oct 28 15:08:15 2008
New Revision: 708698

URL: http://svn.apache.org/viewvc?rev=708698&view=rev
Log:
Fixed a problem listing tokens on the new ibiblio layout.

Modified:
    ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java

Modified: ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java?rev=708698&r1=708697&r2=708698&view=diff
==============================================================================
--- ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java
(original)
+++ ant/ivy/core/branches/2.0.0-rc2/src/java/org/apache/ivy/util/url/ApacheURLLister.java
Tue Oct 28 15:08:15 2008
@@ -125,6 +125,11 @@
             }
 
             text = text.trim();
+            
+            if (href.startsWith("../")) {
+                // we are only interested in sub-URLs, not parent URLs, so skip this one
+                continue;
+            }
 
             // absolute href: convert to relative one
             if (href.startsWith("/")) {



Mime
View raw message