Kaydet (Commit) 36f143d5 authored tarafından Matúš Kukan's avatar Matúš Kukan

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
üst 8fb6f4a7
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment