Commit eed07e55 authored by webchick's avatar webchick
Browse files

#938536 by David_Rothstein: Fixed User account tokens in _user_mail_text() should not be sanitized.

parent 0c33e863
......@@ -2649,7 +2649,9 @@ function _user_mail_text($key, $language = NULL, $variables = array(), $replace
}
if ($replace) {
return token_replace($text, $variables, array('language' => $language, 'callback' => 'user_mail_tokens'));
// We do not sanitize the token replacement, since the output of this
// replacement is intended for an e-mail message, not a web browser.
return token_replace($text, $variables, array('language' => $language, 'callback' => 'user_mail_tokens', 'sanitize' => FALSE));
}
return $text;
......
Markdown is supported
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