When the 'Write new message to recipient' page is displayed, it's title is set with the drupal_set_title function that uses users' name (i.e., $user->name) collected in the $to variable while it should use themed usernames collected in the $to_themed variable.

When using the later that gives a web designer the option to theme the displayed username (that might be composed from other user profile fields).

Because no HTML tags should be present in the title the string should be stripped from any tags (using strip_tags).

I wrote a patch to fix this issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Active » Needs review

Patches must always be made against the x.x-dev version and you need to set the issue to needs review.

I see why this should be done but at the same time, I really dislike using strip_tags() for things like this. But unfortunately, there is no better way in Drupal 6.x...

ptmkenny’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
oadaeh’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.