Make test easier to understand

This commit is contained in:
Owen Mansel-Chan
2025-01-27 14:10:19 +00:00
parent f32fd38f74
commit 05fb22e8ff

View File

@@ -17,7 +17,7 @@ public class SpringXSS {
ResponseEntity.BodyBuilder builder = ResponseEntity.ok();
if(safeContentType) {
if(!safeContentType) {
if(chainDirectly) {
return builder.contentType(MediaType.TEXT_HTML).body(userControlled); // $xss
}