summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-05-19 15:42:56 +0000
committerKurt Zenker <kz@openoffice.org>2004-05-19 15:42:56 +0000
commitb52f2ca1be04ea0d1dcf7b14628dc748aedeaa19 (patch)
treeccef19e12b4a792f8a632645a20e8c6ba92aef99 /ucb
parent66adbf638aab4d1015b49a917002780756472020 (diff)
INTEGRATION: CWS qwizards1 (1.48.62); FILE MERGED
2004/02/23 14:48:17 abi 1.48.62.1: #115652# no addition of final slash if already present
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/package/pkgcontent.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx
index 2d2d3ccf5a7c..394c30f1e64d 100644
--- a/ucb/source/ucp/package/pkgcontent.cxx
+++ b/ucb/source/ucp/package/pkgcontent.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pkgcontent.cxx,v $
*
- * $Revision: 1.49 $
+ * $Revision: 1.50 $
*
- * last change: $Author: hr $ $Date: 2004-04-14 13:39:27 $
+ * last change: $Author: kz $ $Date: 2004-05-19 16:42:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1752,7 +1752,8 @@ void Content::insert(
}
rtl::OUString aNewURL = m_aUri.getParentUri();
- aNewURL += rtl::OUString::createFromAscii( "/" );
+ if (1 + aNewURL.lastIndexOf('/') != aNewURL.getLength())
+ aNewURL += rtl::OUString::createFromAscii( "/" );
aNewURL += PackageUri::encodeSegment( m_aProps.aTitle );
PackageUri aNewUri( aNewURL );