Skip to content

Commit 33e0f25

Browse files
committed
use NodeJSLib::Path instead of DataFlow::moduleMember
1 parent 7c51dff commit 33e0f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ module NodeJSLib {
272272
DataFlow::Node tainted;
273273

274274
PathFlowTarget() {
275-
exists(string methodName | this = DataFlow::moduleMember("path", methodName).getACall() |
275+
exists(string methodName | this = NodeJSLib::Path::moduleMember(methodName).getACall() |
276276
// getters
277277
methodName = "basename" and tainted = getArgument(0)
278278
or

0 commit comments

Comments
 (0)