diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-10-25 12:47:41 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-10-25 12:47:41 +0000 |
commit | d479a2d67f1242a557b8d8288c7cf544afdd18f4 (patch) | |
tree | 32daea4a85270c5a41c7a1e5d2f701178a9d10c5 /ucb/source/ucp/webdav/webdavdatasupplier.cxx | |
parent | 8dea1b9e0e01ce78a5c761559608b196616237d0 (diff) |
#92937# - Improved redirection support.
Diffstat (limited to 'ucb/source/ucp/webdav/webdavdatasupplier.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/webdavdatasupplier.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
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 ); |