Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
privatemsg.use-themed-username-in-title.patch | 1.06 KB | ami7878 | |
Comments
Comment #1
BerdirPatches 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...
Comment #2
ptmkenny CreditAttribution: ptmkenny commentedComment #3
oadaeh CreditAttribution: oadaeh as a volunteer commentedThis 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.