From d479a2d67f1242a557b8d8288c7cf544afdd18f4 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Thu, 25 Oct 2001 12:47:41 +0000 Subject: #92937# - Improved redirection support. --- ucb/source/ucp/webdav/webdavdatasupplier.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ucb/source/ucp/webdav/webdavdatasupplier.cxx') diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index 54016526b3f9..1cc2a60c3843 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -2,9 +2,9 @@ * * $RCSfile: webdavdatasupplier.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: kso $ $Date: 2001-09-06 08:43:38 $ + * last change: $Author: kso $ $Date: 2001-10-25 13:47:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -208,8 +208,7 @@ rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex ) if ( getResult( nIndex ) ) { - rtl::OUString aId - = m_pImpl->m_xContent->getIdentifier()->getContentIdentifier(); + rtl::OUString aId = m_pImpl->m_xContent->getResourceAccess().getURL(); const ContentProperties& props = *( m_pImpl->m_aResults[ nIndex ]->pData ); @@ -219,6 +218,9 @@ rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex ) aId += props.aEscapedTitle; + if ( props.bTrailingSlash ) + aId += rtl::OUString::createFromAscii( "/" ); + m_pImpl->m_aResults[ nIndex ]->aId = aId; return aId; } @@ -445,8 +447,7 @@ sal_Bool DataSupplier::getData() return sal_False; } - NeonUri aURI( - m_pImpl->m_xContent->getIdentifier()->getContentIdentifier() ); + NeonUri aURI( m_pImpl->m_xContent->getResourceAccess().getURL() ); rtl::OUString aPath = aURI.GetPath(); if ( aPath.getStr()[ aPath.getLength() - 1 ] == sal_Unicode( '/' ) ) aPath = aPath.copy( 0, aPath.getLength() - 1 ); -- cgit