Skip to content

Commit 53315e6

Browse files
committed
ignore sources named "code"
1 parent 59cc099 commit 53315e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

javascript/ql/src/semmle/javascript/security/dataflow/UnsafeCodeConstructionCustomizations.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ module UnsafeCodeConstruction {
2222
* A parameter of an exported function, seen as a source.
2323
*/
2424
class ExternalInputSource extends Source, DataFlow::ParameterNode {
25-
ExternalInputSource() { this = Exports::getALibraryInputParameter() }
25+
ExternalInputSource() {
26+
this = Exports::getALibraryInputParameter() and
27+
not this.getName() = "code"
28+
}
2629
}
2730

2831
/**

0 commit comments

Comments
 (0)