From: Vadim Zeitlin Date: Thu, 20 Sep 2012 15:46:18 +0000 (+0000) Subject: Quote wxExecute() arguments in wxDebugReportUpload when using curl. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4f4c48a89fb1434625e482450aeae990fa0b9f31?ds=inline 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 --- 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(),