From e6d1e200490e0626ac99c50bc8ec7bbe21b6bc7a Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 26 Jul 2015 10:02:03 +0000 Subject: [PATCH] [ROSAUTOTEST] - When directly submitting the results to the web service, make sure to URL-encode the test log, or & signs will terminate the log and make Testman see the test as crashed (and have all other kinds of possible consequences) svn path=/trunk/; revision=68578 --- rostests/rosautotest/CWebService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rostests/rosautotest/CWebService.cpp b/rostests/rosautotest/CWebService.cpp index 505e3cb5d78..5041812abb7 100644 --- a/rostests/rosautotest/CWebService.cpp +++ b/rostests/rosautotest/CWebService.cpp @@ -234,7 +234,7 @@ CWebService::Submit(const char* TestType, CTestInfo* TestInfo) Data += "&suiteid="; Data += SuiteID; Data += "&log="; - Data += TestInfo->Log; + Data += EscapeString(TestInfo->Log); Response.reset(DoRequest(Data));