Skip to content

Commit e21164e

Browse files
authored
Merge pull request github#3258 from erik-krogh/NormalPathSanitizer-patch1
Approved by asgerf
2 parents 52b76b1 + e47575c commit e21164e

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)