[ROSAUTOTEST]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 26 Jul 2015 10:02:03 +0000 (10:02 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 26 Jul 2015 10:02:03 +0000 (10:02 +0000)
- 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

index 505e3cb..5041812 100644 (file)
@@ -234,7 +234,7 @@ CWebService::Submit(const char* TestType, CTestInfo* TestInfo)
     Data += "&suiteid=";
     Data += SuiteID;
     Data += "&log=";
     Data += "&suiteid=";
     Data += SuiteID;
     Data += "&log=";
-    Data += TestInfo->Log;
+    Data += EscapeString(TestInfo->Log);
 
     Response.reset(DoRequest(Data));
 
 
     Response.reset(DoRequest(Data));