Skip to content

Commit 0f2e6c7

Browse files
committed
ignore sources named "code"
1 parent 9f2f022 commit 0f2e6c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)