summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-20 14:44:17 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2018-11-20 20:23:59 (GMT)
commite1dfe8cee619be2db2dcccfae5381376d336c6a3 (patch)
tree55f9025bdacb4500789391aee0c1eaf8705d2b0f /Source/CTest
parentea52ec9420a6f147a78276bda8110999faa9e094 (diff)
downloadCMake-e1dfe8cee619be2db2dcccfae5381376d336c6a3.zip
CMake-e1dfe8cee619be2db2dcccfae5381376d336c6a3.tar.gz
CMake-e1dfe8cee619be2db2dcccfae5381376d336c6a3.tar.bz2
CTest: Don't require 'submit.php?' in submit location
Fixes: #18611
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestSubmitHandler.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx
index 98872a5..d57b55e 100644
--- a/Source/CTest/cmCTestSubmitHandler.cxx
+++ b/Source/CTest/cmCTestSubmitHandler.cxx
@@ -1084,8 +1084,10 @@ int cmCTestSubmitHandler::HandleCDashUploadFile(std::string const& file,
std::string dropMethod;
std::string url;
this->ConstructCDashURL(dropMethod, url);
- std::string::size_type pos = url.find("submit.php?");
- url = url.substr(0, pos + 10);
+ std::string::size_type pos = url.find('?');
+ if (pos != std::string::npos) {
+ url = url.substr(0, pos);
+ }
if (!(dropMethod == "http" || dropMethod == "https")) {
cmCTestLog(this->CTest, ERROR_MESSAGE,
"Only http and https are supported for CDASH_UPLOAD\n");