diff options
author | Oliver Braun <obr@openoffice.org> | 2001-08-29 08:50:53 +0000 |
---|---|---|
committer | Oliver Braun <obr@openoffice.org> | 2001-08-29 08:50:53 +0000 |
commit | cf1d466f55105ccfc6f993a677549257a756f3a5 (patch) | |
tree | 620183d96690af41f46f5ccb17c077669b117813 | |
parent | d614f09ab48e0dcd35eb498d2d4fda150ff15491 (diff) |
#91511# handler and url must be escaped
-rw-r--r-- | shell/source/unix/exec/shellexec.cxx | 10 |
1 files 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() ); } |