Skip to content

Commit 08a7953

Browse files
committed
spelling: response
Signed-off-by: Josh Soref <[email protected]>
1 parent 1a14c06 commit 08a7953

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

java/ql/src/experimental/Security/CWE/CWE-094/SpringViewManipulation.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p>
2020
In general, using user input to determine Spring view name should be avoided.
2121
If user input must be included in the expression, the controller can be annotated by
22-
a <code>@ReponseBody</code> annotation. In this case, Spring Framework does not interpret
22+
a <code>@ResponseBody</code> annotation. In this case, Spring Framework does not interpret
2323
it as a view name, but just returns this string in HTTP Response. The same applies to using
2424
a <code>@RestController</code> annotation on a class, as internally it inherits <code>@ResponseBody</code>.
2525
</p>
@@ -31,7 +31,7 @@
3131
</p>
3232
<sample src="SpringViewBad.java" />
3333
<p>
34-
This can be easily prevented by using the <code>ResponseBody</code> annotation which marks the reponse is already processed preventing exploitation of Spring View Manipulation vulnerabilities. Alternatively, this can also be fixed by adding a <code>HttpServletResponse</code> parameter to the method definition as shown in the example below.
34+
This can be easily prevented by using the <code>ResponseBody</code> annotation which marks the response is already processed preventing exploitation of Spring View Manipulation vulnerabilities. Alternatively, this can also be fixed by adding a <code>HttpServletResponse</code> parameter to the method definition as shown in the example below.
3535
</p>
3636
<sample src="SpringViewGood.java" />
3737
</example>

javascript/ql/lib/semmle/javascript/frameworks/ClientRequests.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ module ClientRequest {
671671
}
672672

673673
/**
674-
* Gets the response type corresponding to `getReponse()` but not
674+
* Gets the response type corresponding to `getResponse()` but not
675675
* for explicitly typed calls like `getResponseJson()`.
676676
*/
677677
string getAssignedResponseType() {

0 commit comments

Comments
 (0)