summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 912569183fdf..3349e0f9727f 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1179,7 +1179,11 @@ namespace cmis
// TODO Cache the objects
URL aUrl( m_sURL );
- aUrl.setObjectPath( m_sObjectPath + STD_TO_OUSTR( ( *it )->getName( ) ) );
+ rtl::OUString sPath( m_sObjectPath );
+ if ( sPath[sPath.getLength( ) - 1] != '/' )
+ sPath += "/";
+ sPath += STD_TO_OUSTR( ( *it )->getName( ) );
+ aUrl.setObjectPath( sPath );
uno::Reference< ucb::XContentIdentifier > xId = new ucbhelper::ContentIdentifier( aUrl.asString( ) );
uno::Reference< ucb::XContent > xContent = new Content( m_xSMgr, m_pProvider, xId, *it );