Permalink
Browse files

Entity encode failure messages in XML. Fix #122.

  • Loading branch information...
1 parent cc616a5 commit 34675fc49dd2f43364aa16b175eeff5a71034efa @reid reid committed Dec 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/reporter/junit.js
@@ -91,7 +91,7 @@ JUnitReporter.prototype.putsSuiteDetails = function (result) {
if (fail) {
msg = test.message.split("\n");
self.puts('<failure message="%s">', msg.shift());
- self.puts(msg.join("\n"));
+ self.puts('%s', msg.join("\n")); // Escape second argument.
self.puts('</failure>');
self.puts('</testcase>');
}

0 comments on commit 34675fc

Please sign in to comment.