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
Branches
Tags
1 merge request!2219Bump brakeman to ~> 3.1.0
Pipeline #
Loading
Loading
@@ -9,7 +9,7 @@ class Projects::CommitsController < Projects::ApplicationController
 
def show
@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)
@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.
Please register or to comment