jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1136584 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java
Date Thu, 16 Jun 2011 18:26:03 GMT
Author: thomasm
Date: Thu Jun 16 18:26:03 2011
New Revision: 1136584

URL: http://svn.apache.org/viewvc?rev=1136584&view=rev
Log:
Support {../..} in path elements (so that JCR paths don't have to be escaped) - support trailing
/

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java?rev=1136584&r1=1136583&r2=1136584&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/util/PathUtils.java
Thu Jun 16 18:26:03 2011
@@ -85,7 +85,9 @@ public class PathUtils {
         while(true) {
             int index = getNextSlash(path, 0);
             if (index < 0) {
-                list.add(path);
+                if (path.length() > 0) {
+                    list.add(path);
+                }
                 break;
             }
             if (index >= 0) {



Mime
View raw message