diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-10-30 09:34:23 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-10-30 09:34:23 +0000 |
commit | be612daef99c8d6702ab63f576070dda946a03a5 (patch) | |
tree | 9a63b20f0a3a2ecdb49dda4e13bfd5f51255336f /package | |
parent | #93905# insertByName: ensure that the object beeing inserted has the name giv... (diff) | |
download | core-be612daef99c8d6702ab63f576070dda946a03a5.tar.gz core-be612daef99c8d6702ab63f576070dda946a03a5.zip |
#92012# decode titles before passing them to the file UCP
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index c923e52fdc27..c2077aad445b 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackage.cxx,v $ * - * $Revision: 1.68 $ + * $Revision: 1.69 $ * - * last change: $Author: hr $ $Date: 2001-10-26 11:21:18 $ + * last change: $Author: mtg $ $Date: 2001-10-30 10:34:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -136,6 +136,9 @@ #ifndef _CPPUHELPER_TYPEPROVIDER_HXX_ #include <cppuhelper/typeprovider.hxx> #endif +#ifndef _RTL_URI_HXX_ +#include <rtl/uri.hxx> +#endif #include <memory> using namespace rtl; @@ -869,7 +872,9 @@ void SAL_CALL ZipPackage::commitChanges( ) aInfo.NameClash = NameClash::OVERWRITE; aInfo.MoveData = sal_False; aInfo.SourceURL = sTempURL; - aInfo.NewTitle = sURL.copy ( 1 + sURL.lastIndexOf ( static_cast < sal_Unicode > ( '/' ) ) ); + aInfo.NewTitle = rtl::Uri::decode ( sURL.copy ( 1 + sURL.lastIndexOf ( static_cast < sal_Unicode > ( '/' ) ) ), + rtl_UriDecodeWithCharset, + RTL_TEXTENCODING_UTF8 ); aAny <<= aInfo; try { |