File tree Expand file tree Collapse file tree 4 files changed +4
-20
lines changed
java/ql/test/query-tests/security/CWE-295/AndroidMissingCertificatePinning Expand file tree Collapse file tree 4 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
13
13
loc = node .getLocation ( ) and
14
14
el = node .toString ( ) and
15
15
value = "" and
16
- (
17
- if exists ( string x | trustedDomain ( x ) )
18
- then tag = "hasUntrustedResult"
19
- else tag = "hasNoTrustedResult"
20
- )
16
+ if trustedDomain ( _) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
21
17
)
22
18
}
23
19
}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
13
13
loc = node .getLocation ( ) and
14
14
el = node .toString ( ) and
15
15
value = "" and
16
- (
17
- if exists ( string x | trustedDomain ( x ) )
18
- then tag = "hasUntrustedResult"
19
- else tag = "hasNoTrustedResult"
20
- )
16
+ if trustedDomain ( _) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
21
17
)
22
18
}
23
19
}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
13
13
loc = node .getLocation ( ) and
14
14
el = node .toString ( ) and
15
15
value = "" and
16
- (
17
- if exists ( string x | trustedDomain ( x ) )
18
- then tag = "hasUntrustedResult"
19
- else tag = "hasNoTrustedResult"
20
- )
16
+ if trustedDomain ( _) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
21
17
)
22
18
}
23
19
}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
13
13
loc = node .getLocation ( ) and
14
14
el = node .toString ( ) and
15
15
value = "" and
16
- (
17
- if exists ( string x | trustedDomain ( x ) )
18
- then tag = "hasUntrustedResult"
19
- else tag = "hasNoTrustedResult"
20
- )
16
+ if trustedDomain ( _) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
21
17
)
22
18
}
23
19
}
You can’t perform that action at this time.
0 commit comments