diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-02 20:23:05 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-05-02 20:23:05 +0000 |
commit | 3433731585b6126208cd855b46115d18d249fb1f (patch) | |
tree | 4e82e3832e613b975efa8093e22bb4a6035b99f1 /test | |
parent | 6f82abf463588d129b66d12d55129f123dcf8c67 (diff) | |
download | redmine-3433731585b6126208cd855b46115d18d249fb1f.tar.gz redmine-3433731585b6126208cd855b46115d18d249fb1f.zip |
Switches from MD5 to SHA256 when computing the hash for gravatar URL (#40652).
git-svn-id: https://svn.redmine.org/redmine/trunk@22802 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/avatars_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers/avatars_helper_test.rb b/test/helpers/avatars_helper_test.rb index 03a4b1ea1..06c4d5993 100644 --- a/test/helpers/avatars_helper_test.rb +++ b/test/helpers/avatars_helper_test.rb @@ -31,11 +31,11 @@ class AvatarsHelperTest < Redmine::HelperTest end def test_avatar_with_user - assert_include Digest::MD5.hexdigest('jsmith@somenet.foo'), avatar(User.find_by_mail('jsmith@somenet.foo')) + assert_include Digest::SHA256.hexdigest('jsmith@somenet.foo'), avatar(User.find_by_mail('jsmith@somenet.foo')) end def test_avatar_with_email_string - assert_include Digest::MD5.hexdigest('jsmith@somenet.foo'), avatar('jsmith <jsmith@somenet.foo>') + assert_include Digest::SHA256.hexdigest('jsmith@somenet.foo'), avatar('jsmith <jsmith@somenet.foo>') end def test_avatar_with_anonymous_user |