From 4f4c48a89fb1434625e482450aeae990fa0b9f31 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 20 Sep 2012 15:46:18 +0000 Subject: [PATCH] Quote wxExecute() arguments in wxDebugReportUpload when using curl. Quote the argument to curl as it might contain spaces. Closes #14677. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/debugrpt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/debugrpt.cpp b/src/common/debugrpt.cpp index a903051fcf..d98c9cb044 100644 --- a/src/common/debugrpt.cpp +++ b/src/common/debugrpt.cpp @@ -687,7 +687,7 @@ bool wxDebugReportUpload::DoProcess() wxArrayString output, errors; int rc = wxExecute(wxString::Format ( - wxT("%s -F %s=@\"%s\" %s"), + wxT("%s -F \"%s=@%s\" %s"), m_curlCmd.c_str(), m_inputField.c_str(), GetCompressedFileName().c_str(), -- 2.45.2