mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Ruby: Fix bug in disablesCertificateValidation
This commit is contained in:
@@ -93,7 +93,13 @@ module ActiveResource {
|
||||
|
||||
/** Holds if this site value specifies HTTP rather than HTTPS. */
|
||||
predicate disablesCertificateValidation() {
|
||||
this.getAUrlPart().asExpr().getConstantValue().getString().regexpMatch("^http(^s)")
|
||||
this.getAUrlPart()
|
||||
.asExpr()
|
||||
.(ExprNodes::AssignExprCfgNode)
|
||||
.getRhs()
|
||||
.getConstantValue()
|
||||
.getString()
|
||||
.regexpMatch("^http[^s].+")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
modelClasses
|
||||
| active_resource.rb:1:1:3:3 | Person | active_resource.rb:2:3:2:11 | call to site= | false |
|
||||
| active_resource.rb:29:1:31:3 | Post | active_resource.rb:30:3:30:11 | call to site= | false |
|
||||
| active_resource.rb:29:1:31:3 | Post | active_resource.rb:30:3:30:11 | call to site= | true |
|
||||
modelClassMethodCalls
|
||||
| active_resource.rb:2:3:2:11 | call to site= |
|
||||
| active_resource.rb:5:9:5:33 | call to new |
|
||||
|
||||
Reference in New Issue
Block a user