Prevent an XSS warning from the updated Brakeman

This commit is contained in:
Robert Speicher 2015-12-27 21:19:14 -05:00
parent 7a20c6da91
commit 1bda2e43a2
1 changed files with 1 additions and 1 deletions

View File

@ -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)).