Skip to content

Commit dabc33b

Browse files
committed
simplify UnicodeBypassValidationQuery code
1 parent 7dcbbba commit dabc33b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/experimental/UnicodeBypassValidationQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private module UnicodeBypassValidationConfig implements DataFlow::StateConfigSig
8383
(
8484
exists(Escaping escaping | source = escaping.getOutput())
8585
or
86-
exists(RegexExecution re | source = re)
86+
source instanceof RegexExecution
8787
or
8888
// String Manipulation Method Calls
8989
// https://ruby-doc.org/core-2.7.0/String.html
@@ -100,7 +100,7 @@ private module UnicodeBypassValidationConfig implements DataFlow::StateConfigSig
100100
"partition", "prepend", "replace", "rpartition", "scan", "split", "undump",
101101
"unpack" + ["", "1"]
102102
] and
103-
source = cn
103+
source = cn
104104
)
105105
or
106106
exists(DataFlow::CallNode cn |

0 commit comments

Comments
 (0)