Skip to content

Commit f14df64

Browse files
authored
Merge pull request #10455 from geoffw0/cleartexttest
Swift: Update test for swift/cleartext-transmission
2 parents 0703b88 + 213cd94 commit f14df64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/test/query-tests/Security/CWE-311/testURL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ func test1(passwd : String, encrypted_passwd : String, account_no : String, cred
1818
let base = URL(string: "http://example.com/"); // GOOD (not sensitive)
1919
let e = URL(string: "abc", relativeTo: base); // GOOD (not sensitive)
2020
let f = URL(string: passwd, relativeTo: base); // BAD
21-
let g = URL(string: "abc", relativeTo: f); // BAD [NOT DETECTED]
21+
let g = URL(string: "abc", relativeTo: f); // BAD (reported on line above)
2222
}

0 commit comments

Comments
 (0)