Commit 87af8ad9 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Tokens should not be sanitized as modules that call...

by Dave Reid: Tokens should not be sanitized as modules that call format_username() are responsible for sanitization.
parent 5c725dd3
......@@ -187,7 +187,7 @@ function realname_update($account) {
drupal_alter('realname_pattern', $pattern, $account);
// Perform token replacement on the real name pattern.
$realname = token_replace($pattern, array('user' => $account), array('clear' => TRUE));
$realname = token_replace($pattern, array('user' => $account), array('clear' => TRUE, 'sanitize' => FALSE));
$realname = trim($realname);
// Allow other modules to alter the generated realname.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment