diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-18 06:49:06 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-18 06:49:06 +0000 |
commit | 056e4bcb6317562e3dd695e1c314236a5906f52d (patch) | |
tree | a28f18ffc59c03c419fd1f9291763f2a1d37a107 /ucb | |
parent | 2273f17b1d67a83f1c054c34b14b0e0fe616bbdd (diff) |
INTEGRATION: CWS calc42 (1.18.4); FILE MERGED
2007/07/12 15:22:13 kso 1.18.4.1: #i79439# - Fixed escaping of whole URIs, adapted to changed ne_uri behavior.
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/NeonUri.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/NeonUri.cxx b/ucb/source/ucp/webdav/NeonUri.cxx index 42dc99e3df93..30edbeded12e 100644 --- a/ucb/source/ucp/webdav/NeonUri.cxx +++ b/ucb/source/ucp/webdav/NeonUri.cxx @@ -4,9 +4,9 @@ * * $RCSfile: NeonUri.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: rt $ $Date: 2007-07-03 12:13:56 $ + * last change: $Author: obo $ $Date: 2007-07-18 07:49:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -185,6 +185,20 @@ void NeonUri::init( const rtl::OString & rUri, const ne_uri * pUri ) mPath = rtl::OStringToOUString( pUri->path ? pUri->path : pUriDefs->path, RTL_TEXTENCODING_UTF8 ); + + if ( pUri->query ) + { + mPath += rtl::OUString::createFromAscii( "?" ); + mPath += rtl::OStringToOUString( + pUri->query, RTL_TEXTENCODING_UTF8 ); + } + + if ( pUri->fragment ) + { + mPath += rtl::OUString::createFromAscii( "#" ); + mPath += rtl::OStringToOUString( + pUri->fragment, RTL_TEXTENCODING_UTF8 ); + } } // ------------------------------------------------------------------- |