Skip to content

Commit d51fcd4

Browse files
committed
Python: Change Str to StringLiteral
As far as I can tell, this was the only occurrence of `Str` as a type throughout the entire library.
1 parent b484aee commit d51fcd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/security/dataflow/UnsafeShellCommandConstructionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module UnsafeShellCommandConstruction {
113113

114114
ArrayJoin() {
115115
call.getMethodName() = "join" and
116-
unique( | | call.getArg(_)).asExpr().(Str).getText() = " " and
116+
unique( | | call.getArg(_)).asExpr().(StringLiteral).getText() = " " and
117117
isUsedAsShellCommand(call, s) and
118118
(
119119
this = call.getArg(0) and

0 commit comments

Comments
 (0)