File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/test/query-tests/security/CWE-079/semmle/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,12 @@ public String testDirectReturn(String userControlled) {
139
139
140
140
@ GetMapping (value = "/xyz" , produces = {"application/json" })
141
141
public ResponseEntity <String > overridesWithSafe (String userControlled ) {
142
- return ResponseEntity .ok (userControlled ); // $SPURIOUS: xss
142
+ return ResponseEntity .ok (userControlled );
143
143
}
144
144
145
145
@ GetMapping (value = "/abc" )
146
146
public ResponseEntity <String > overridesWithSafe2 (String userControlled ) {
147
- return ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (userControlled ); // $SPURIOUS: xss
147
+ return ResponseEntity .ok ().contentType (MediaType .APPLICATION_JSON ).body (userControlled );
148
148
}
149
149
}
150
150
You can’t perform that action at this time.
0 commit comments