mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge branch 'main' into missDocParam
This commit is contained in:
@@ -307,7 +307,7 @@ private module JQueryClientRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a node refering to the response contained in an `jqXHR` object.
|
||||
* Gets a node referring to the response contained in an `jqXHR` object.
|
||||
*/
|
||||
private DataFlow::SourceNode getAResponseNodeFromAnXHRObject(DataFlow::SourceNode jqXHR) {
|
||||
result =
|
||||
@@ -407,11 +407,11 @@ module JQuery {
|
||||
|
||||
private class DefaultRange extends Range {
|
||||
DefaultRange() {
|
||||
// either a reference to a global variable `$` or `jQuery`
|
||||
this = DataFlow::globalVarRef(any(string jq | jq = "$" or jq = "jQuery"))
|
||||
// either a reference to a global variable `$`, `jQuery`, or `cash`
|
||||
this = DataFlow::globalVarRef(["$", "jQuery", "cash"])
|
||||
or
|
||||
// or imported from a module named `jquery` or `zepto`
|
||||
this = DataFlow::moduleImport(["jquery", "zepto"])
|
||||
// or imported from a module named `jquery`, `zepto`, or `cash-dom`
|
||||
this = DataFlow::moduleImport(["jquery", "zepto", "cash-dom"])
|
||||
or
|
||||
this.hasUnderlyingType("JQueryStatic")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user