Skip to content

Commit 556d68a

Browse files
geoffw0atorralba
andauthored
Update swift/ql/src/queries/Security/CWE-311/CleartextTransmission.ql
Co-authored-by: Tony Torralba <[email protected]>
1 parent 949cfb7 commit 556d68a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift/ql/src/queries/Security/CWE-311/CleartextTransmission.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ class AlamofireTransmitted extends Transmitted {
6666
fName.regexpMatch("(request|streamRequest|download)\\(.*") and
6767
(
6868
call.getArgument(0).getExpr() = this or
69-
call.getArgumentWithLabel("parameters").getExpr() = this or
70-
call.getArgumentWithLabel("headers").getExpr() = this
69+
call.getArgumentWithLabel(["headers", "parameters"]).getExpr() = this
7170
)
7271
)
7372
}

0 commit comments

Comments
 (0)