Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Entity encode failure messages in XML. Fix #122.

  • Loading branch information...
commit 34675fc49dd2f43364aa16b175eeff5a71034efa 1 parent cc616a5
@reid authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/reporter/junit.js
View
2  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>');
}
Please sign in to comment.
Something went wrong with that request. Please try again.