Skip to content

Commit

Permalink
Ensure system-err and system-out contents are properly escaped.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberwolf committed Aug 19, 2013
1 parent 3fcef17 commit 38d04ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions commands/core/test.drush.inc
Expand Up @@ -315,11 +315,13 @@ function drush_test_xml_results($test_id, $dir, $info) {
$test_case_element->appendChild($error_element);
}
if (!empty($test_case->system_out)) {
$system_out_element = $xml->createElement('system-out', $test_case->system_out);
$system_out_element = $xml->createElement('system-out');
$system_out_element->appendChild($xml->createTextNode($test_case->system_out));
$test_case_element->appendChild($system_out_element);
}
if (!empty($test_case->system_err)) {
$system_err_element = $xml->createElement('system-err', $test_case->system_err);
$system_err_element = $xml->createElement('system-err');
$system_err_element->appendChild($xml->createTextNode($test_case->system_err));
$test_case_element->appendChild($system_err_element);
}
$test_suite_element->appendChild($test_case_element);
Expand Down

0 comments on commit 38d04ef

Please sign in to comment.