[Libreoffice-commits] core.git: ucb/source

Caolán McNamara caolanm at redhat.com
Sat Feb 25 19:45:53 UTC 2017


 ucb/source/ucp/webdav-neon/NeonSession.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a493900e955b126d3393f376fef2ce6afbc1cdb6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Feb 25 19:32:24 2017 +0000

    value returned from particular web server is not valid ascii
    
    $1 = 0x1a24b90 "GET,HEAD,H\205\360),HEAD,POST,OPTIONS"
    
    from this url to a missing resource
    
    http://www.japan-net.ne.jp/%7Enagayama/image/14photo/omoide/0301fuji/01rot-s.jpg
    
    seen during soffice --headless --convert odt ooo26424-5.sxw
    
    Change-Id: If6429dc02ff42bae9372ae39cadf8b49f278f54d

diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 4486306..7ba44b1 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -872,8 +872,8 @@ void NeonSession::OPTIONS( const OUString & inPath,
         while ( ( cursor = ne_response_header_iterate(
                       req, cursor, &name, &value ) ) != nullptr )
         {
-            OUString aHeaderName( OUString::createFromAscii( name ).toAsciiLowerCase() );
-            OUString aHeaderValue( OUString::createFromAscii( value ) );
+            OUString aHeaderName(OUString(name, strlen(name), RTL_TEXTENCODING_ASCII_US).toAsciiLowerCase());
+            OUString aHeaderValue(value, strlen(value), RTL_TEXTENCODING_ASCII_US);
 
             // display the single header
             SAL_INFO( "ucb.ucp.webdav", "OPTIONS - received header: " << aHeaderName << ":" << aHeaderValue );


More information about the Libreoffice-commits mailing list