You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2011/01/03 13:08:29 UTC

svn commit: r1054587 - /lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java

Author: andreas
Date: Mon Jan  3 12:08:28 2011
New Revision: 1054587

URL: http://svn.apache.org/viewvc?rev=1054587&view=rev
Log:
Reverted accidential change (remove first element from base path too).

Modified:
    lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java

Modified: lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java?rev=1054587&r1=1054586&r2=1054587&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java (original)
+++ lenya/branches/BRANCH_2_1_X/src/modules-core/linking/java/src/org/apache/lenya/cms/linking/UriUtil.java Mon Jan  3 12:08:28 2011
@@ -24,6 +24,7 @@ public class UriUtil {
 
         while (!basePath.isEmpty() && targetPath.size() > 1
                 && basePath.first().equals(targetPath.first())) {
+            basePath.removeFirst();
             targetPath.removeFirst();
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org