Skip to content

Commit 05fb22e

Browse files
committed
Make test easier to understand
1 parent f32fd38 commit 05fb22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/test/query-tests/security/CWE-079/semmle/tests/SpringXSS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static ResponseEntity<String> specificContentType(boolean safeContentType
1717

1818
ResponseEntity.BodyBuilder builder = ResponseEntity.ok();
1919

20-
if(safeContentType) {
20+
if(!safeContentType) {
2121
if(chainDirectly) {
2222
return builder.contentType(MediaType.TEXT_HTML).body(userControlled); // $xss
2323
}

0 commit comments

Comments
 (0)