CRM-18320: Fix URLs with ampersands in CiviMail
authorJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 30 Mar 2016 09:39:21 +0000 (10:39 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Wed, 30 Mar 2016 09:39:21 +0000 (10:39 +0100)
extern/url.php

index 0819f9cf173855e6d587b5ec64500c2d4c4298eb..4c89886e4e61f4f8034c46e8800f0c272533b603 100644 (file)
@@ -54,6 +54,9 @@ if (strlen($query_string) > 0) {
   }
 }
 
+// CRM-18320 - Fix encoded ampersands (see CRM_Utils_System::redirect)
+$url = str_replace('&amp;', '&', $url);
+
 // CRM-17953 - The CMS is not bootstrapped so cannot use CRM_Utils_System::redirect
 header('Location: ' . $url);
 CRM_Utils_System::civiExit();