projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce108f
)
CRM-18320: Fix URLs with ampersands in CiviMail
author
JKingsnorth
<john@johnkingsnorth.co.uk>
Wed, 30 Mar 2016 09:39:21 +0000
(10:39 +0100)
committer
JKingsnorth
<john@johnkingsnorth.co.uk>
Wed, 30 Mar 2016 09:39:21 +0000
(10:39 +0100)
extern/url.php
patch
|
blob
|
blame
|
history
diff --git
a/extern/url.php
b/extern/url.php
index 0819f9cf173855e6d587b5ec64500c2d4c4298eb..4c89886e4e61f4f8034c46e8800f0c272533b603 100644
(file)
--- 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();