summaryrefslogtreecommitdiff
path: root/ucb/source/ucp
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2001-07-10 10:04:06 +0000
committerAndreas Bille <abi@openoffice.org>2001-07-10 10:04:06 +0000
commitd0b631416fd7bb32a761e4e20f1f3c80308ccf57 (patch)
tree8a7ca82a0686259580add971858959c592b61b56 /ucb/source/ucp
parente2257f640b0d65440472428bde8afa94620de0e4 (diff)
One more place to encode a new title ( for transfer )
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r--ucb/source/ucp/file/bc.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 12fbe4166638..f761b7f4af23 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bc.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: abi $ $Date: 2001-07-09 11:50:39 $
+ * last change: $Author: abi $ $Date: 2001-07-10 11:04:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1134,7 +1134,10 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier,
// Determine the new title !
rtl::OUString NewTitle;
if( aTransferInfo.NewTitle.getLength() )
- NewTitle = aTransferInfo.NewTitle;
+ NewTitle = rtl::Uri::encode( aTransferInfo.NewTitle,
+ rtl_UriCharClassPchar,
+ rtl_UriEncodeIgnoreEscapes,
+ RTL_TEXTENCODING_UTF8 );
else
NewTitle = srcUncPath.copy( 1 + srcUncPath.lastIndexOf( sal_Unicode('/') ) );