- Patch #1300298 by askibinski: empty tokens don't get replaced in welcome emails.

8.0.x
Dries 2012-02-21 14:02:50 -05:00
parent 5e6cc3c85a
commit edabf1fc3a
1 changed files with 1 additions and 1 deletions

View File

@ -2758,7 +2758,7 @@ Your account on [site:name] has been canceled.
if ($replace) {
// 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 token_replace($text, $variables, array('language' => $language, 'callback' => 'user_mail_tokens', 'sanitize' => FALSE, 'clear' => TRUE));
}
return $text;