projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66c874c
)
CRM-20206 Fix encoding in plain text checksum links
author
JKingsnorth
<john@johnkingsnorth.co.uk>
Thu, 2 Mar 2017 12:19:07 +0000
(12:19 +0000)
committer
JKingsnorth
<john@johnkingsnorth.co.uk>
Thu, 2 Mar 2017 12:19:07 +0000
(12:19 +0000)
CRM/Mailing/BAO/Mailing.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/BAO/Mailing.php
b/CRM/Mailing/BAO/Mailing.php
index d746b5abc846259e7cc8eb2f397ed733fa9f457c..35eeaf095bea15bf3d538a5de769a6f2c4037613 100644
(file)
--- a/
CRM/Mailing/BAO/Mailing.php
+++ b/
CRM/Mailing/BAO/Mailing.php
@@
-1469,7
+1469,7
@@
ORDER BY civicrm_email.is_bulkmail DESC
if ($type == 'embedded_url') {
$embed_data = array();
foreach ($token as $t) {
- $embed_data[] = $this->getTokenData($t, $html
= FALSE
, $contact, $verp, $urls, $event_queue_id);
+ $embed_data[] = $this->getTokenData($t, $html, $contact, $verp, $urls, $event_queue_id);
}
$numSlices = count($embed_data);
$url = '';
@@
-1488,6
+1488,9
@@
ORDER BY civicrm_email.is_bulkmail DESC
$url .= '"';
}
$data = $url;
+ if (empty($html)) {
+ $data = str_replace('&', '&', $data);
+ }
}
elseif ($type == 'url') {
if ($this->url_tracking) {