Skip to content

Commit 749dc09

Browse files
committed
Ruby: Attempt to mitigate potential bad join
By joining simultaneously on controller class and name.
1 parent a38bc9f commit 749dc09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ActionControllerActionMethod extends Method, HTTP::Server::RequestHandler:
9494
ActionDispatch::Route getARoute() {
9595
result.getController() + "_controller" =
9696
ActionDispatch::underscore(namespaceDeclaration(controllerClass)) and
97-
this.getName() = result.getAction()
97+
isActionControllerMethod(this, result.getAction(), controllerClass)
9898
}
9999
}
100100

0 commit comments

Comments
 (0)