1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17355] Change gravatar URL to new format

PHPBB-17355
This commit is contained in:
Marc Alexander
2024-06-30 11:57:35 +02:00
parent 40881b537e
commit 5013075af7
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ class gravatar extends \phpbb\avatar\driver\driver
/**
* The URL for the gravatar service
*/
const GRAVATAR_URL = '//secure.gravatar.com/avatar/';
const GRAVATAR_URL = '//gravatar.com/avatar/';
/**
* {@inheritdoc}
@@ -175,7 +175,7 @@ class gravatar extends \phpbb\avatar\driver\driver
global $phpbb_dispatcher;
$url = self::GRAVATAR_URL;
$url .= md5(strtolower(trim($row['avatar'])));
$url .= hash('sha256', strtolower(trim($row['avatar'])));
if ($row['avatar_width'] || $row['avatar_height'])
{