mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
more precise getChild for matching "../"
This commit is contained in:
@@ -285,7 +285,7 @@ module TaintedPath {
|
||||
exists(RegExpSequence seq | seq = result |
|
||||
seq.getChild(0).getConstantValue() = "." and
|
||||
seq.getChild(1).getConstantValue() = "." and
|
||||
seq.getAChild().getAMatchedString() = "/"
|
||||
seq.getChild(2).getAMatchedString() = "/"
|
||||
)
|
||||
or
|
||||
exists(RegExpGroup group | result = group | group.getChild(0) = getADotDotSlashMatcher())
|
||||
|
||||
Reference in New Issue
Block a user