From 2454f5b0d9817822468ff1888b9697b572bec9e6 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 20 Dec 2011 22:00:44 +0000 Subject: [PATCH] Gravatar emails should be trimmed before being lowered and hashed. props evansolomon. fixes #19614. git-svn-id: http://svn.automattic.com/wordpress/trunk@19614 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 78550047ee..fd671caf9d 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1629,7 +1629,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) { } if ( !empty($email) ) - $email_hash = md5( strtolower( $email ) ); + $email_hash = md5( strtolower( trim( $email ) ) ); if ( is_ssl() ) { $host = 'https://secure.gravatar.com';