Closed (outdated)
Project:
Masquerade
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2014 at 11:33 UTC
Updated:
17 Apr 2026 at 12:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostthis is not a right way to display role names.
use a kind of
$role_options = array_map('check_plain', user_roles());Comment #2
NerOcrO commentedAnd now?
Comment #3
NerOcrO commentedComment #4
andypostroles could be added via UI so needs sanitization, check core for usage of the role names
Comment #5
NerOcrO commentedYes, the t() function sanitize this variable : http://cgit.drupalcode.org/drupal/tree/includes/bootstrap.inc?h=7.x#n1466.
More specifically, format_string().
Comment #6
NerOcrO commentedComment #7
ressaThanks for working on this. In an attempt to help the maintainers, I am going through some of the Drupal 7 issues, and closing them, since Drupal 7 is EOL.
Maintainers should grant credit for the great work to the relevant users, even if the patch did not get committed: https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett....
Since Drupal 7 is EOL, we can probably close this issue, but feel free to re-open if this is still relevant, and we should consider adding this to the Drupal 11 version?