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("/")) {