Skip to content

Commit d55ba25

Browse files
committed
Ruby: fix an alert
1 parent bc53570 commit d55ba25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/security/CleartextLoggingCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module CleartextLogging {
103103
// We explicitly exclude element references, element assignments, and
104104
// mutation methods.
105105
not name = ["[]", "[]="] and
106-
not name.suffix(1) = "!"
106+
not name.matches("%!")
107107
}
108108

109109
/**

0 commit comments

Comments
 (0)