diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-03-11 16:00:03 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-04-02 15:35:23 +0200 |
commit | 333001c4a31da5da957a56b589f6556f54a5d962 (patch) | |
tree | b0752608cf67ccfddb8262b3ad8ded9f4ab204cd /ucb | |
parent | 5c85ba488732e41c31af50ca3013d3fcce2a7e0f (diff) |
webdav: Use plain OStringBuffer here, otherwise wrong string is created.
..with "true" instead of thePropName.name and thePropName.nspace
which obviously breaks things.
Change-Id: I6568e6a98c1793ebbe8ab1864bd8ad3995eee09c
(cherry picked from commit 36f143d59492be24d0b275d728f2c151e9123075)
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx index 557a0e74983b..ef9e16dc4ca4 100644 --- a/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx +++ b/ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx @@ -23,7 +23,7 @@ #include "webdavresponseparser.hxx" #include <comphelper/seqstream.hxx> -#include <rtl/ustrbuf.hxx> +#include <rtl/strbuf.hxx> using namespace com::sun::star; @@ -95,7 +95,7 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t { // TODO is it really needed a Unicode string buffer? // All properties and property names aren't supposed to be ASCII? - rtl::OUStringBuffer aBuffer; + OStringBuffer aBuffer; aBuffer.append( PROPFIND_HEADER ); // create and fill body bucket with requested properties @@ -135,7 +135,7 @@ serf_bucket_t * SerfPropFindReqProcImpl::createSerfRequestBucket( serf_request_t } aBuffer.append( PROPFIND_TRAILER ); - aBodyText = rtl::OUStringToOString( aBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ); + aBodyText = aBuffer.makeStringAndClear(); body_bkt = serf_bucket_simple_copy_create( aBodyText.getStr(), aBodyText.getLength(), pSerfBucketAlloc ); |