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

New commits:
commit 5734c6fee6a959b86b5e7f9c391ae3bee6009a08
Author: Mike Kaganski <[email protected]>
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 <[email protected]>
    Tested-by: Jenkins <[email protected]>

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 (...)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to