Skip to content

Commit 213cd94

Browse files
committed
Swift: Update the test.
1 parent e6d4e87 commit 213cd94

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)