Details
Description
This was reported by Marisa Porter due to unexpected changes in the output sent to mail clients (for our newsletter). Quite a few lines of markup are now being dropped - resulting in the newsletter not being properly viewable on iPhones and other non-desktop devices. The change occurred somewhere between v4.4.4 and 4.4.6.
Attached files show the contents of the <script> </script> tag as output in May Newsletter vs. September Newsletter. Input was identical - but CIVICRM_MAIL_SMARTY was enabled on the site in between.
SOLUTION: add
{literal}...
{/literal}smarty tags inside the <script> ... </script> block in the sample templates. This will prevent problems if CIVICRM_MAIL_SMARTY is enabled AND our testing shows that these tags are ignored in the markup if they aren't stripped out (i.e. if CIVICRM_MAIL_SMARTY is NOT enabled).