Don't use URI join
This commit is contained in:
parent
3cb99017c7
commit
fe1553e943
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
def avatar_url(size = nil)
|
||||
if avatar.present?
|
||||
URI::join(gitlab_config.url, avatar.url).to_s
|
||||
[gitlab_config.url, avatar.url].join("/")
|
||||
else
|
||||
GravatarService.new.execute(email, size)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue