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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 4 21:05:13 UTC 2018


 ucb/source/ucp/webdav-neon/NeonSession.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92af2b5e36a403ff8f81d81d047b2d1dc340cef9
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Nov 4 17:07:04 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Nov 4 22:04:06 2018 +0100

    crashtesting: kde124742-1.html cannot trust header to be valid ascii
    
    Change-Id: Ia073dcbf0a0a4d2f3df1f58d0e140f68e830182b
    Reviewed-on: https://gerrit.libreoffice.org/62856
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 57ffe1002026..c10796a48e79 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -2021,7 +2021,7 @@ namespace {
 void runResponseHeaderHandler( void * userdata,
                                const char * value )
 {
-    OUString aHeader( OUString::createFromAscii( value ) );
+    OUString aHeader(value, strlen(value), RTL_TEXTENCODING_ASCII_US);
     sal_Int32 nPos = aHeader.indexOf( ':' );
 
     if ( nPos != -1 )


More information about the Libreoffice-commits mailing list