Commit 1364ed8a authored by grendzy's avatar grendzy Committed by greggles

Issue: 1096369 by grendzy, greggles: some characters converted to HTML entities by token_replace

parent 726886ea
......@@ -433,7 +433,7 @@ function _comment_notify_mailalert($comment) {
'body' => comment_notify_variable_registry_get('node_notify_default_mailtext'), //JS @todo:change this.
);
foreach ($raw_values as $k => $v) {
$message[$k] = token_replace(t($v), array('comment' => $comment));
$message[$k] = token_replace(t($v), array('comment' => $comment), array('sanitize' => FALSE));
}
drupal_mail('comment_notify', 'comment_notify_mail', $author->mail, $language, $message);
......@@ -474,7 +474,7 @@ function _comment_notify_mailalert($comment) {
);
foreach ($raw_values as $k => $v) {
$message[$k] = token_replace(t($v), array('comment' => $comment, 'comment-subscribed' => $alert));
$message[$k] = token_replace(t($v), array('comment' => $comment, 'comment-subscribed' => $alert), array('sanitize' => FALSE));
}
drupal_mail('comment_notify', 'comment_notify_mail', $mail, $language, $message);
......
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