Skip to content

Commit

Permalink
Applied trim and strtolower to Gravatar email per Gravatar docs: http…
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed Aug 16, 2013
1 parent 0a74768 commit ebce83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/View/Helper/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function getDefaultImg()
public function setEmail($email)
{
$this->emailIsHashed = (bool) preg_match('/^[A-Za-z0-9]{32}$/', $email);
$this->email = $email;
$this->email = strtolower(trim($email));
return $this;
}

Expand Down

0 comments on commit ebce83b

Please sign in to comment.