From 92af2b5e36a403ff8f81d81d047b2d1dc340cef9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 4 Nov 2018 17:07:04 +0000 Subject: crashtesting: kde124742-1.html cannot trust header to be valid ascii MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia073dcbf0a0a4d2f3df1f58d0e140f68e830182b Reviewed-on: https://gerrit.libreoffice.org/62856 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ucb/source/ucp/webdav-neon') 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 ) -- cgit