From 2741762199b159692e2e2fb002807a6a42f7cd4c Mon Sep 17 00:00:00 2001 From: TomsProject <44722363+TomsProject@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:32:21 +0800 Subject: [PATCH] Changing hashing algorithm to sha256 --- plugins/avatars/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/avatars/index.php b/plugins/avatars/index.php index 5e66ed3e5..f66b1cfcf 100644 --- a/plugins/avatars/index.php +++ b/plugins/avatars/index.php @@ -273,7 +273,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin } if ($this->Config()->Get('plugin', 'gravatar', false)) { - $aUrls[] = 'https://gravatar.com/avatar/'.\md5(\strtolower($sAsciiEmail)).'?s=80&d=404'; + $aUrls[] = 'https://gravatar.com/avatar/'.\hash('sha256', \strtolower($sAsciiEmail)).'?s=80&d=404'; } foreach ($aUrls as $sUrl) {