Commit 1bda2e43 authored by Robert Speicher's avatar Robert Speicher

Prevent an XSS warning from the updated Brakeman

parent 7a20c6da
...@@ -9,7 +9,7 @@ class Projects::CommitsController < Projects::ApplicationController ...@@ -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)).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment