Skip to content

Commit

Permalink
CRM-20206 Use existing function to replace ampersand codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKingsnorth committed Mar 2, 2017
1 parent 58fb735 commit 23c625f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -1488,8 +1488,9 @@ private function getTokenData(&$token_a, $html = FALSE, &$contact, &$verp, &$url
$url .= '"';
}
$data = $url;
// CRM-20206 Fix ampersand encoding in plain text emails
if (empty($html)) {
$data = str_replace('&', '&', $data);
$data = CRM_Utils_String::unstupifyUrl($data);
}
}
elseif ($type == 'url') {
Expand Down

0 comments on commit 23c625f

Please sign in to comment.