Skip to content

Commit e47575c

Browse files
committed
more precise getChild for matching "../"
1 parent 7c5c9ea commit e47575c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/TaintedPathCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ module TaintedPath {
285285
exists(RegExpSequence seq | seq = result |
286286
seq.getChild(0).getConstantValue() = "." and
287287
seq.getChild(1).getConstantValue() = "." and
288-
seq.getAChild().getAMatchedString() = "/"
288+
seq.getChild(2).getAMatchedString() = "/"
289289
)
290290
or
291291
exists(RegExpGroup group | result = group | group.getChild(0) = getADotDotSlashMatcher())

0 commit comments

Comments
 (0)