summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestCurl.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2015-01-29 19:42:44 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-30 15:36:38 (GMT)
commit18e3771ac7c74986a4f06221a72781ace54b1169 (patch)
treeee24181a4343ca8d63b0e34a0bc8b6e4034a0f26 /Source/CTest/cmCTestCurl.h
parenta47b904db242abb903a968bd6109bc8a07d3c39a (diff)
downloadCMake-18e3771ac7c74986a4f06221a72781ace54b1169.zip
CMake-18e3771ac7c74986a4f06221a72781ace54b1169.tar.gz
CMake-18e3771ac7c74986a4f06221a72781ace54b1169.tar.bz2
ctest_submit: Escape URL components in CDASH_UPLOAD mode
Call curl_easy_escape on arguments sent to CDash upload.
Diffstat (limited to 'Source/CTest/cmCTestCurl.h')
-rw-r--r--Source/CTest/cmCTestCurl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCurl.h b/Source/CTest/cmCTestCurl.h
index 5bb8b41..0737bb6 100644
--- a/Source/CTest/cmCTestCurl.h
+++ b/Source/CTest/cmCTestCurl.h
@@ -22,6 +22,7 @@ class cmCTestCurl
{
public:
cmCTestCurl(cmCTest*);
+ ~cmCTestCurl();
bool UploadFile(std::string const& url,
std::string const& file,
std::string const& fields,
@@ -34,6 +35,7 @@ public:
void SetCurlOptions(std::vector<std::string> const& args);
void SetUseHttp10On() { this->UseHttp10 = true;}
void SetTimeOutSeconds(int s) { this->TimeOutSeconds = s;}
+ std::string Escape(std::string const& source);
protected:
void SetProxyType();
bool InitCurl();