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:
Matt Ward
2012-07-12 09:45:46 +00:00
parent e67f40a573
commit d07499fddd
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}