From 07bb7edd4874d0bd9c2029ff88aa74e5bec04d9d Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Wed, 30 Mar 2016 10:39:21 +0100 Subject: [PATCH] CRM-18320: Fix URLs with ampersands in CiviMail --- extern/url.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extern/url.php b/extern/url.php index 0819f9cf17..4c89886e4e 100644 --- a/extern/url.php +++ b/extern/url.php @@ -54,6 +54,9 @@ if (strlen($query_string) > 0) { } } +// CRM-18320 - Fix encoded ampersands (see CRM_Utils_System::redirect) +$url = str_replace('&', '&', $url); + // CRM-17953 - The CMS is not bootstrapped so cannot use CRM_Utils_System::redirect header('Location: ' . $url); CRM_Utils_System::civiExit(); -- 2.25.1