Apply suggestions from code review

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Erik Krogh Kristensen
2020-05-14 10:05:59 +02:00
committed by GitHub
parent ce5356f592
commit 422ade16db
2 changed files with 3 additions and 3 deletions

View File

@@ -127,9 +127,9 @@ module ZipSlip {
*/
class PathSanitizer extends Sanitizer, DataFlow::CallNode {
PathSanitizer() {
this = DataFlow::moduleMember("path", "join").getACall() and
this = NodeJSLib::Path::moduleMember("join").getACall() and
exists(DataFlow::CallNode inner | inner = getArgument(1) |
inner = DataFlow::moduleMember("path", "join").getACall() and
inner = NodeJSLib::Path::moduleMember("join").getACall() and
inner.getArgument(0).mayHaveStringValue("/")
)
}