From a75d90740647414f55ef5a37bdfb230d624ec2eb Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 19 Apr 2015 15:38:28 +0200 Subject: [PATCH] Related tdf#55502: Harden a bit Change-Id: I56155e234b13ca3e9fb95565d08a38252eeba712 --- basic/source/runtime/methods.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 3b84e4bc0a16..575ce6afc154 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3590,7 +3590,7 @@ RTLFUNC(Shell) // attach additional parameters - everything must be parsed anyway if( nArgCount >= 4 ) { - OUString tmp = rPar.Get(3)->GetOUString(); + OUString tmp = rPar.Get(3)->GetOUString().trim(); if (!tmp.isEmpty()) { aCmdLine += " ";