File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
lib/codeql/ruby/frameworks
test/library-tests/frameworks/active_resource Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,13 @@ module ActiveResource {
93
93
94
94
/** Holds if this site value specifies HTTP rather than HTTPS. */
95
95
predicate disablesCertificateValidation ( ) {
96
- this .getAUrlPart ( ) .asExpr ( ) .getConstantValue ( ) .getString ( ) .regexpMatch ( "^http(^s)" )
96
+ this .getAUrlPart ( )
97
+ .asExpr ( )
98
+ .( ExprNodes:: AssignExprCfgNode )
99
+ .getRhs ( )
100
+ .getConstantValue ( )
101
+ .getString ( )
102
+ .regexpMatch ( "^http[^s].+" )
97
103
}
98
104
}
99
105
Original file line number Diff line number Diff line change 1
1
modelClasses
2
2
| active_resource.rb:1:1:3:3 | Person | active_resource.rb:2:3:2:11 | call to site= | false |
3
- | active_resource.rb:29:1:31:3 | Post | active_resource.rb:30:3:30:11 | call to site= | false |
3
+ | active_resource.rb:29:1:31:3 | Post | active_resource.rb:30:3:30:11 | call to site= | true |
4
4
modelClassMethodCalls
5
5
| active_resource.rb:2:3:2:11 | call to site= |
6
6
| active_resource.rb:5:9:5:33 | call to new |
You can’t perform that action at this time.
0 commit comments