Hi,
Username is encoded twice in theming function because l() also processes link text through check_plain():
function theme_twitter_username_formatter_twitter_username_link($vars) {
$twitter_username = check_plain($vars['element']['twitter_username']);
return l("@" . $twitter_username, 'http://twitter.com/' . $twitter_username);
}
Code should be changed to:
function theme_twitter_username_formatter_twitter_username_link($vars) {
$twitter_username = $vars['element']['twitter_username'];
return l("@" . $twitter_username, 'http://twitter.com/' . $twitter_username);
}
Regards,
Martin
Comments
Comment #3
opiThanks, commited !
Comment #4
mduvergey commentedHi,
The fix include the following code in function theme_twitter_username_formatter_twitter_username_follow_button():
The problem is function theme_link() also applies check_plain() to #path (html key of #options is set to FALSE).
So it looks like double encoding is happening again.
Regards,
Martin
Comment #6
opidamn ! Fixed and commited, this time I'll wait before creating a new release ! Thanks