First steps in XXE integration tests
This commit is contained in:
@ -67,7 +67,7 @@ public class ContentTypeAssignment extends AssignmentEndpoint {
|
||||
attackResult = failed().feedback("xxe.content.type.feedback.json").build();
|
||||
}
|
||||
|
||||
if (MediaType.APPLICATION_XML_VALUE.equals(contentType)) {
|
||||
if (null != contentType && contentType.contains(MediaType.APPLICATION_XML_VALUE)) {
|
||||
String error = "";
|
||||
try {
|
||||
Comment comment = comments.parseXml(commentStr);
|
||||
|
Reference in New Issue
Block a user