mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Fixed createBranch() so that layered node lookups behave properly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5579 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -141,4 +141,16 @@ public class AVMNodeConverter
|
||||
decomposed[1] = path.substring(off + 1);
|
||||
return decomposed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize an AVM path.
|
||||
* @param path The incoming path.
|
||||
* @return The normalized path.
|
||||
*/
|
||||
public static String NormalizePath(String path)
|
||||
{
|
||||
path = path.replaceAll("/+", "/");
|
||||
path = path.replaceAll("/$", "");
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user