From 717b7316bfdf4289edc6a89840db6a82c7ba3592 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 28 Feb 2008 16:34:59 +0000 Subject: [PATCH] Ensure email address is lower case in get_avatar(). Fixes #6028 props josephscott. git-svn-id: http://svn.automattic.com/wordpress/trunk@7087 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 02a31d52f1..fc5c35d759 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1211,7 +1211,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '' ) { if ( !empty($email) ) { $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; - $out .= md5( $email ); + $out .= md5( strtolower( $email ) ); $out .= "&size={$size}"; $out .= "&default={$default}";