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) {
139139
140140 @ GetMapping (value = "/xyz" , produces = {"application/json" })
141141 public ResponseEntity <String > overridesWithSafe (String userControlled ) {
142- return ResponseEntity .ok (userControlled ); // $SPURIOUS: xss
142+ return ResponseEntity .ok (userControlled );
143143 }
144144
145145 @ GetMapping (value = "/abc" )
146146 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 );
148148 }
149149 }
150150
You can’t perform that action at this time.
0 commit comments