Skip to content

Commit 6c024a5

Browse files
committed
Rust: Remove unnecessary pattern matching in cleartext logging query sinks (probably inherited from another query or language where it is used).
1 parent 492e27b commit 6c024a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/lib/codeql/rust/security/CleartextLoggingExtensions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ module CleartextLogging {
4040
* A sink for logging from model data.
4141
*/
4242
private class ModelsAsDataSink extends Sink {
43-
ModelsAsDataSink() { exists(string s | sinkNode(this, s) and s.matches("log-injection%")) }
43+
ModelsAsDataSink() { sinkNode(this, "log-injection") }
4444
}
4545
}

0 commit comments

Comments
 (0)