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

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
haby0
2021-04-15 17:28:53 +08:00
committed by GitHub
parent b3bdf89fc2
commit 5d05e4d224

View File

@@ -21,7 +21,7 @@ abstract class RequestGetMethod extends Method {
/** Override method of `doGet` of `Servlet` subclass. */
private class ServletGetMethod extends RequestGetMethod {
ServletGetMethod() { this instanceof DoGetServletMethod }
ServletGetMethod() { isServletRequestMethod(this) and m.getName() = "doGet" }
}
/** The method of SpringController class processing `get` request. */