File tree Expand file tree Collapse file tree
lib/codeql/ruby/frameworks
test/library-tests/frameworks/active_resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,13 @@ module ActiveResource {
9393
9494 /** Holds if this site value specifies HTTP rather than HTTPS. */
9595 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].+" )
97103 }
98104 }
99105
Original file line number Diff line number Diff line change 11modelClasses
22| 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 |
44modelClassMethodCalls
55| active_resource.rb:2:3:2:11 | call to site= |
66| active_resource.rb:5:9:5:33 | call to new |
You can’t perform that action at this time.
0 commit comments