From d8944e84e8c66485b496f10dbed86c534381f625 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Wed, 23 Dec 2015 16:12:39 +0100 Subject: [PATCH] Allow leading and trailing newlines in plain-text headers and footers --- CRM/Mailing/Form/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1