Skip to content

Commit 5d05e4d

Browse files
haby0smowton
andauthored
Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll
Co-authored-by: Chris Smowton <[email protected]>
1 parent b3bdf89 commit 5d05e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class RequestGetMethod extends Method {
2121

2222
/** Override method of `doGet` of `Servlet` subclass. */
2323
private class ServletGetMethod extends RequestGetMethod {
24-
ServletGetMethod() { this instanceof DoGetServletMethod }
24+
ServletGetMethod() { isServletRequestMethod(this) and m.getName() = "doGet" }
2525
}
2626

2727
/** The method of SpringController class processing `get` request. */

0 commit comments

Comments
 (0)