mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Make test easier to understand
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user