Skip to content
Snippets Groups Projects
Commit 1bda2e43 authored by Robert Speicher's avatar Robert Speicher
Browse files

Prevent an XSS warning from the updated Brakeman

parent 7a20c6da
No related branches found
No related tags found
1 merge request!2219Bump brakeman to ~> 3.1.0
Pipeline #
Loading
@@ -9,7 +9,7 @@ class Projects::CommitsController < Projects::ApplicationController
Loading
@@ -9,7 +9,7 @@ class Projects::CommitsController < Projects::ApplicationController
   
def show def show
@repo = @project.repository @repo = @project.repository
@limit, @offset = (params[:limit] || 40), (params[:offset] || 0) @limit, @offset = (params[:limit] || 40).to_i, (params[:offset] || 0).to_i
   
@commits = @repo.commits(@ref, @path, @limit, @offset) @commits = @repo.commits(@ref, @path, @limit, @offset)
@note_counts = project.notes.where(commit_id: @commits.map(&:id)). @note_counts = project.notes.where(commit_id: @commits.map(&:id)).
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment