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

Mike Kaganski mike.kaganski at collabora.com
Wed Jul 19 12:00:27 UTC 2017


 desktop/source/app/cmdlineargs.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5734c6fee6a959b86b5e7f9c391ae3bee6009a08
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Wed Jul 19 12:36:19 2017 +0300

    CheckWebQuery: Don't use OUString::createFromAscii for user input
    
    Change-Id: I26803984c0a9e172aa4ceb7bfc9d26abb14ca207
    Reviewed-on: https://gerrit.libreoffice.org/40173
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 6011b262a5ac..1a9bac2a1a2d 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -231,7 +231,7 @@ CommandLineEvent CheckWebQuery(/* in,out */ OUString& arg, CommandLineEvent curE
 
         stream.Close();
 
-        arg = OUString::createFromAscii(aResult.getStr());
+        arg = OStringToOUString(aResult.makeStringAndClear(), osl_getThreadTextEncoding());
         return CommandLineEvent::ForceNew;
     }
     catch (...)


More information about the Libreoffice-commits mailing list