Skip to content

Commit 7dcbbba

Browse files
committed
Refactor UnicodeBypassValidationQuery to remove unnecessary code
1 parent 7f153ed commit 7dcbbba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ private module UnicodeBypassValidationConfig implements DataFlow::StateConfigSig
100100
"partition", "prepend", "replace", "rpartition", "scan", "split", "undump",
101101
"unpack" + ["", "1"]
102102
] and
103-
source = cn and
104-
source.getLocation().getFile().getBaseName().matches("object.rb")
103+
source = cn
105104
)
106105
or
107106
exists(DataFlow::CallNode cn |

0 commit comments

Comments
 (0)