mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
add comment about parameters named "code"
This commit is contained in:
@@ -24,6 +24,7 @@ module UnsafeCodeConstruction {
|
||||
class ExternalInputSource extends Source, DataFlow::ParameterNode {
|
||||
ExternalInputSource() {
|
||||
this = Exports::getALibraryInputParameter() and
|
||||
// permit parameters that clearly are intended to contain executable code.
|
||||
not this.getName() = "code"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user