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
This commit is contained in:
parent
20be787163
commit
2454f5b0d9
|
@ -1629,7 +1629,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($email) )
|
if ( !empty($email) )
|
||||||
$email_hash = md5( strtolower( $email ) );
|
$email_hash = md5( strtolower( trim( $email ) ) );
|
||||||
|
|
||||||
if ( is_ssl() ) {
|
if ( is_ssl() ) {
|
||||||
$host = 'https://secure.gravatar.com';
|
$host = 'https://secure.gravatar.com';
|
||||||
|
|
Loading…
Reference in New Issue