diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-05-03 06:19:49 -0700 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-05-03 06:19:49 -0700 |
commit | 12bb1d8f39d655576a98eabd6307cab5103e616c (patch) | |
tree | c115b8d010c5dc4638cded98c98b278b74096d21 /app | |
parent | 28bc6c524720dfdad68eb46eeb8aa7dced2cf42f (diff) | |
parent | babb6a1a6b6cc08182d4053cf11266a687d79620 (diff) | |
download | gitlab-ce-12bb1d8f39d655576a98eabd6307cab5103e616c.tar.gz |
Merge pull request #775 from netdata/gravatar_empty_issue
When the email address is empty gitlab will give a 500 error
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 92f1680ef1f..587e6e7da5a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,7 +1,7 @@ require 'digest/md5' module ApplicationHelper - def gravatar_icon(user_email, size = 40) + def gravatar_icon(user_email = '', size = 40) gravatar_host = request.ssl? ? "https://secure.gravatar.com" : "http://www.gravatar.com" user_email.strip! "#{gravatar_host}/avatar/#{Digest::MD5.hexdigest(user_email.downcase)}?s=#{size}&d=identicon" |