We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76587c4 commit 76c6a52Copy full SHA for 76c6a52
ruby/ql/src/queries/security/cwe-116/IncompleteSanitization.ql
@@ -28,7 +28,7 @@ string metachar() { result = "'\"\\&<>\n\r\t*|{}[]%$".charAt(_) }
28
predicate isSimple(RE::RegExpTerm t) {
29
t instanceof RE::RegExpConstant
30
or
31
- isSimple(t.(RE::RegExpGroup).getAChild())
+ isSimple(t.(RE::RegExpGroup).getAChild()) // N.B. a group has only one child
32
33
isSimpleCharacterClass(t)
34
0 commit comments