mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Prevent an XSS warning from the updated Brakeman
This commit is contained in:
@@ -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)).
|
||||
|
||||
Reference in New Issue
Block a user