[MRM-610] fix webdav tests on windows

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@642214 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-03-28 12:59:02 +00:00
parent 40a360dbdb
commit 7e9be00ccc
1 changed files with 8 additions and 4 deletions

View File

@ -76,12 +76,16 @@ public class MultiplexedDavServerRequest
*/
this.logicalResource = FilenameUtils.normalize( logicalResource );
if ( logicalResource != null && logicalResource.startsWith( "//" ) )
if ( logicalResource != null )
{
logicalResource = logicalResource.substring( 1 );
}
logicalResource = logicalResource.replace( '\\', '/' );
if ( this.logicalResource == null )
if ( logicalResource.startsWith( "//" ) )
{
logicalResource = logicalResource.substring( 1 );
}
}
else
{
this.logicalResource = "/";
}