mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
WebDAV: fix broken code from moving inlining of getRepositoryPath(...) from WebDAV to WebDAVHelper.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@39173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -897,7 +897,7 @@ public class WebDAVHelper
|
||||
if (strPath == null || strPath.length() == 0)
|
||||
{
|
||||
// If we still have not got a path then default to the root directory
|
||||
strPath = RootPath;
|
||||
strPath = WebDAV.RootPath;
|
||||
}
|
||||
else if (strPath.startsWith(request.getServletPath()))
|
||||
{
|
||||
@@ -910,13 +910,13 @@ public class WebDAVHelper
|
||||
}
|
||||
else
|
||||
{
|
||||
strPath = RootPath;
|
||||
strPath = WebDAV.RootPath;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure there are no trailing slashes
|
||||
|
||||
if (strPath.length() > 1 && strPath.endsWith(DIR_SEPARATOR))
|
||||
if (strPath.length() > 1 && strPath.endsWith(WebDAV.PathSeperator))
|
||||
{
|
||||
strPath = strPath.substring(0, strPath.length() - 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user