Fixed Default avatar URL for Gravatar broken when using custom imagePath

#1
When using a customized URL for imagePath in a style the default avatar URL that gets passed to Gravatar is broken.

With default setting the (unescaped) URL is in the form of
d=http://forums.host/styles/default/xenforo/avatars/avatar_l.png

When switching imagePath to a CDN (e.g. http://cdn.host/styles/default) the default avatar URL becomes
d=http://forums.host/http://cdn.host/styles/default/xenforo/avatars/avatar_l.png

As long as the user has a working Gravatar, everything is OK. However if a Gravatar is set, but Gravatar reverts to the default, we get a broken image. Gravatar does a 302 redirect to
http://i0.wp.com/forums.host/http://cdn.host/styles/default/xenforo/avatars/avatar_l.png

Running XenForo v1.3.3 with no add-ons enabled and using the default style.
 
Top