Skip to content

Commit

Permalink
Fix: Gravatar hash calculation does not match Gravatar API (trim/strt…
Browse files Browse the repository at this point in the history
…olower should be used)
  • Loading branch information
plutzilla committed Jul 31, 2014
1 parent 796a422 commit a01f377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/inc/PMF/Services/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ public function getUrl()
*/
public static function getHash($email)
{
return md5($email);
return md5(strtolower(trim($email)));
}
}

0 comments on commit a01f377

Please sign in to comment.