diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-07 18:36:46 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-07 18:36:46 +0000 |
commit | b4bfb6b581035b52a193c74ac74825f3652a014a (patch) | |
tree | 5cb102d4869ab473f9c8fa2e7844079b623ca5da /app/controllers/repositories_controller.rb | |
parent | 9ef1cdd375793b05d9ef7a6036678168f2704750 (diff) | |
download | redmine-b4bfb6b581035b52a193c74ac74825f3652a014a.tar.gz redmine-b4bfb6b581035b52a193c74ac74825f3652a014a.zip |
Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest (#35217).
Patch by Jens Krämer (@jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 2645ded40..8deb35404 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -279,7 +279,7 @@ class RepositoriesController < ApplicationController User.current.preference.save end @cache_key = "repositories/diff/#{@repository.id}/" + - Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}-#{current_language}") + ActiveSupport::Digest.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}-#{current_language}") unless read_fragment(@cache_key) @diff = @repository.diff(@path, @rev, @rev_to) (show_error_not_found; return) unless @diff |