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

New commits:
commit 92af2b5e36a403ff8f81d81d047b2d1dc340cef9
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Nov 4 17:07:04 2018 +0000
Commit:     Caolán McNamara <caol...@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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to