mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Ruby: Attempt to mitigate potential bad join
By joining simultaneously on controller class and name.
This commit is contained in:
@@ -94,7 +94,7 @@ class ActionControllerActionMethod extends Method, HTTP::Server::RequestHandler:
|
||||
ActionDispatch::Route getARoute() {
|
||||
result.getController() + "_controller" =
|
||||
ActionDispatch::underscore(namespaceDeclaration(controllerClass)) and
|
||||
this.getName() = result.getAction()
|
||||
isActionControllerMethod(this, result.getAction(), controllerClass)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user