Closed (fixed)
Project:
Feedback
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 May 2012 at 00:51 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidComment #2
sunwow.
All other format_* functions return a sanitized string: http://api.drupal.org/api/search/7/format_
Let's pretty please open an at least major bug against Drupal core to fix that format_username() mess/confusion.
Comment #3
dave reidWell really we should be getting rid of format_username() calls and people should be calling entity_label('user', $account) or $entity->label instead. Both of those should be assumed to be unsanitized output like the rest of entity properties.
Comment #4
dave reidCross-linking #983734: Deprecate format_username() for entity_label() and add hook_entity_label_alter()
Comment #5
jody lynnCommitted.