CRM-18028: dont encode url when constructed
authorBrian Shaughnessy <brian@lcdservices.biz>
Sat, 13 Feb 2016 04:09:31 +0000 (23:09 -0500)
committerBrian Shaughnessy <brian@lcdservices.biz>
Sat, 13 Feb 2016 04:09:31 +0000 (23:09 -0500)
CRM/Utils/Token.php

index cbb4f7adfc239e4c854216c1ddc166a6dcf81eb0..57ffda411986678a37e0316f36b349eb9dcedae4 100644 (file)
@@ -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('&amp;', '&', $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('&amp;', '&', $url);
         $str = preg_replace('/' . preg_quote($value) . '/', $url, $str);
       }
     }