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 {
1313 loc = node .getLocation ( ) and
1414 el = node .toString ( ) and
1515 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"
2117 )
2218 }
2319}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
1313 loc = node .getLocation ( ) and
1414 el = node .toString ( ) and
1515 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"
2117 )
2218 }
2319}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
1313 loc = node .getLocation ( ) and
1414 el = node .toString ( ) and
1515 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"
2117 )
2218 }
2319}
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
1313 loc = node .getLocation ( ) and
1414 el = node .toString ( ) and
1515 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"
2117 )
2218 }
2319}
You can’t perform that action at this time.
0 commit comments