diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-27 21:19:14 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-12-27 21:19:14 -0500 |
commit | 1bda2e43a2f5ffdd4afa7ae73798ca4e36c0de9f (patch) | |
tree | 88540495cc6f5092ffded184bfe605c917dc3dda /app/controllers | |
parent | 7a20c6da9155fe112ceb3ec9e83cd0255eb15858 (diff) | |
download | gitlab-ce-1bda2e43a2f5ffdd4afa7ae73798ca4e36c0de9f.tar.gz |
Prevent an XSS warning from the updated Brakemanrs-bump-brakeman
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/commits_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commits_controller.rb b/app/controllers/projects/commits_controller.rb index 58fb946dbc2..04a88990bf4 100644 --- a/app/controllers/projects/commits_controller.rb +++ b/app/controllers/projects/commits_controller.rb @@ -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)). |