Btw, using t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $this->conf['gravatarDefaultIcon'] is wrong because $this->conf['gravatarDefaultIcon'] may have a host part already (CDN host, for example). Such concatenations should never be used. t3lib_div::locationHeaderUrl() takes care of such cases.