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
No related merge requests found
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.
Finish editing this message first!
Please register or to comment