Comparing version 2.1.0 to 2.2.0
@@ -55,3 +55,3 @@ // Load modules | ||
if (this.message) { | ||
this.output.payload.message = Hoek.escapeHtml(this.message); // Prevent XSS from error message | ||
this.output.payload.message = this.message; | ||
} | ||
@@ -58,0 +58,0 @@ }; |
{ | ||
"name": "boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"repository": "git://github.com/spumko/boom", | ||
@@ -6,0 +6,0 @@ "main": "index", |
@@ -481,14 +481,4 @@ // Load modules | ||
}); | ||
describe('#reformat', function () { | ||
it('enstatusCodes any HTML markup in the response payload', function (done) { | ||
var boom = Boom.wrap(new Error('<script>alert(1)</script>')); | ||
expect(boom.output.payload.message).to.not.contain('<script>'); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51306
481