Skip to content

Commit 8032473

Browse files
committed
Python: Fixup annotation for CWE-022-PathInjection/pathlib_use.py
1 parent 753192b commit 8032473

File tree

1 file changed

+2
-2
lines changed
  • python/ql/test/query-tests/Security/CWE-022-PathInjection

1 file changed

+2
-2
lines changed

python/ql/test/query-tests/Security/CWE-022-PathInjection/pathlib_use.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def path_injection():
1212
filename = request.args.get('filename', '')
1313
p = STATIC_DIR / filename
14-
p.open() # NOT OK
14+
p.open() # $ result=BAD
1515

1616
p2 = pathlib.Path(STATIC_DIR, filename)
17-
p2.open() # NOT OK
17+
p2.open() # $ result=BAD

0 commit comments

Comments
 (0)