2020-09-17, 02:01 PM
(2020-09-17, 01:36 PM)Shade Wrote: TopStats applies an unnecessary htmlspecialchars_uni() to all avatar urls before they are formatted by format_avatar(). Long story short, & becomes & and this breaks ui-avatars.com image processing.
To solve, open inc/plugins/topStats.php and get rid of all htmlspecialchars_uni() applied to avatar urls. You can easily spot them by looking for the string "format_avatar(htmlspecialchars_uni(". Eg.:
$useravatar = format_avatar(htmlspecialchars_uni($row['avatar']), $row['avatardimensions'], my_strtolower($this->getConfig('AvatarWidth')));
Becomes
$useravatar = format_avatar($row['avatar'], $row['avatardimensions'], my_strtolower($this->getConfig('AvatarWidth')));
Shade! Thank you. I'm about to go purchase your plugins.