From: Brian Shaughnessy Date: Sat, 13 Feb 2016 04:09:31 +0000 (-0500) Subject: CRM-18028: dont encode url when constructed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3f390aa650e743f8ab7047814980fecaf1818202;p=civicrm-core.git CRM-18028: dont encode url when constructed --- diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index cbb4f7adfc..57ffda4119 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -988,9 +988,8 @@ class CRM_Utils_Token { 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); } @@ -999,9 +998,8 @@ class CRM_Utils_Token { $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); } }