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

merge-requests/26/head
Angie Byron 2010-11-14 22:15:39 +00:00
parent 0c33e86388
commit eed07e55dd
1 changed files with 3 additions and 1 deletions

View File

@ -2649,7 +2649,9 @@ Your account on [site:name] has been canceled.
}
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;