From: Mattias Michaux Date: Wed, 23 Dec 2015 15:12:39 +0000 (+0100) Subject: Allow leading and trailing newlines in plain-text headers and footers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8944e84e8c66485b496f10dbed86c534381f625;p=civicrm-core.git Allow leading and trailing newlines in plain-text headers and footers --- diff --git a/CRM/Mailing/Form/Component.php b/CRM/Mailing/Form/Component.php index 3af70648a9..7ac3c88f5e 100644 --- a/CRM/Mailing/Form/Component.php +++ b/CRM/Mailing/Form/Component.php @@ -59,7 +59,7 @@ class CRM_Mailing_Form_Component extends CRM_Core_Form { * Build the form object. */ public function buildQuickForm() { - $this->applyFilter('__ALL__', 'trim'); + $this->applyFilter(array('name', 'subject', 'body_html'), 'trim'); $this->add('text', 'name', ts('Name'), CRM_Core_DAO::getAttribute('CRM_Mailing_DAO_Component', 'name'), TRUE