From 0cb72b7c32ec80c7ac73c9e5d191d7ea585ba667 Mon Sep 17 00:00:00 2001 From: David Hicks Date: Fri, 25 Mar 2011 21:04:22 +1100 Subject: [PATCH] Fix #10850: Update Gravatar URL format to meet current standard Gravatar's official URL syntax for loading an image is different to the older mechanism MantisBT is still using. The official syntax is available at: http://en.gravatar.com/site/implement/images/ --- core/user_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/user_api.php b/core/user_api.php index 32b7585aff..dd9fc56d0d 100644 --- a/core/user_api.php +++ b/core/user_api.php @@ -826,7 +826,7 @@ function user_get_avatar( $p_user_id, $p_size = 80 ) { $t_gravatar_domain = 'https://secure.gravatar.com/'; } - $t_avatar_url = $t_gravatar_domain . 'avatar.php?gravatar_id=' . md5( $t_email ) . '&default=' . urlencode( $t_default_image ) . '&size=' . $t_size . '&rating=G'; + $t_avatar_url = $t_gravatar_domain . 'avatar/' . md5( $t_email ) . '&default=' . urlencode( $t_default_image ) . '&size=' . $t_size . '&rating=G'; $t_result = array( $t_avatar_url, $t_size,