Skip to content

Commit 3f0cdb6

Browse files
committed
Update qldoc and comments
1 parent fa54c23 commit 3f0cdb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/src/experimental/Security/CWE/CWE-600/UncaughtServletException.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<a href="https://cwe.mitre.org/data/definitions/600.html">CWE-600: Uncaught Exception in Servlet</a>
3030
</li>
3131
<li>
32-
Sonarsource:
32+
SonarSource:
3333
<a href="https://rules.sonarsource.com/java/tag/owasp/RSPEC-1989">Exceptions should not be thrown from servlet methods</a>
3434
</li>
3535
<li>

java/ql/src/experimental/Security/CWE/CWE-600/UncaughtServletException.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ThrowExConfiguration extends DataFlow2::Configuration {
2626

2727
/** Sink of `ThrowStmt` */
2828
override predicate isSink(DataFlow::Node sink) {
29-
exists(ThrowStmt ts | sink.asExpr() = ts.getExpr()) // e.g. the uhex exception throwed in `catch (UnknownHostException uhex) {throw uhex;}`
29+
exists(ThrowStmt ts | sink.asExpr() = ts.getExpr()) // e.g. the uhex exception thrown in `catch (UnknownHostException uhex) {throw uhex;}`
3030
}
3131

3232
/**

0 commit comments

Comments
 (0)