Skip to content

Commit

Permalink
Fix #10850: Update Gravatar URL format to meet current standard
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
davidhicks committed Mar 25, 2011
1 parent c7ab41f commit 0cb72b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/user_api.php
Expand Up @@ -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,
Expand Down

0 comments on commit 0cb72b7

Please sign in to comment.