]> git.saurik.com Git - wxWidgets.git/commitdiff
Quote wxExecute() arguments in wxDebugReportUpload when using curl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2012 15:46:18 +0000 (15:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2012 15:46:18 +0000 (15:46 +0000)
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

index a903051fcf1a4e4c6e5b463fe0f103010fe3a87d..d98c9cb044b855c784658ac98e2c9abb1454bd3e 100644 (file)
@@ -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(),