Refactor UnicodeBypassValidationQuery to remove unnecessary code

This commit is contained in:
Sim4n6
2024-06-05 13:05:34 +01:00
parent 7f153ed07b
commit 7dcbbbac91

View File

@@ -100,8 +100,7 @@ private module UnicodeBypassValidationConfig implements DataFlow::StateConfigSig
"partition", "prepend", "replace", "rpartition", "scan", "split", "undump",
"unpack" + ["", "1"]
] and
source = cn and
source.getLocation().getFile().getBaseName().matches("object.rb")
source = cn
)
or
exists(DataFlow::CallNode cn |