mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
Update javascript/ql/lib/semmle/javascript/frameworks/React.qll
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
@@ -806,10 +806,12 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range {
|
||||
|
||||
private class UseRefDomValueSource extends DOM::DomValueSource::Range {
|
||||
UseRefDomValueSource() {
|
||||
exists(DataFlow::PropRead current, UseRefStep step | current = this |
|
||||
step.step(_, current) and
|
||||
current.mayHavePropertyName("current")
|
||||
)
|
||||
this =
|
||||
any(JsxAttribute attrib | attrib.getName() = "ref")
|
||||
.getValue()
|
||||
.flow()
|
||||
.getALocalSource()
|
||||
.getAPropertyRead("current")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user