From cf1d466f55105ccfc6f993a677549257a756f3a5 Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Wed, 29 Aug 2001 08:50:53 +0000 Subject: #91511# handler and url must be escaped --- shell/source/unix/exec/shellexec.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx index cbce3163a66b..df7fe46b5e51 100644 --- a/shell/source/unix/exec/shellexec.cxx +++ b/shell/source/unix/exec/shellexec.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shellexec.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obr $ $Date: 2001-06-27 06:38:56 $ + * last change: $Author: obr $ $Date: 2001-08-29 09:50:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -299,11 +299,15 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar // due to a possible convertion to file url, // rebuild command line from scratch - OUStringBuffer aBuffer( aHandler.getLength() + aURL.getLength() + 1 ); + OUStringBuffer aBuffer( aHandler.getLength() + aURL.getLength() + 5 ); + aBuffer.append( (sal_Unicode) '\"' ); aBuffer.append( aHandler ); + aBuffer.append( (sal_Unicode) '\"' ); aBuffer.append( (sal_Unicode) ' ' ); + aBuffer.append( (sal_Unicode) '\'' ); aBuffer.append( aURL ); + aBuffer.append( (sal_Unicode) '\'' ); aCommandLine = OUStringToOString( aBuffer.makeStringAndClear(), osl_getThreadTextEncoding() ); } -- cgit