diff options
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index d7a3be123..8592e0155 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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; |