if (preg_match('/\{action\.subscribeUrl\}/', $str)) {
$url = CRM_Utils_System::url('civicrm/mailing/subscribe',
'reset=1',
- TRUE, NULL, TRUE, TRUE
+ TRUE, NULL, FALSE, TRUE
);
- $url = str_replace('&', '&', $url);
$str = preg_replace('/\{action\.subscribeUrl\}/', $url, $str);
}
$gid = substr($value, 21, -1);
$url = CRM_Utils_System::url('civicrm/mailing/subscribe',
"reset=1&gid={$gid}",
- TRUE, NULL, TRUE, TRUE
+ TRUE, NULL, FALSE, TRUE
);
- $url = str_replace('&', '&', $url);
$str = preg_replace('/' . preg_quote($value) . '/', $url, $str);
}
}