Allow leading and trailing newlines in plain-text headers and footers
authorMattias Michaux <mattias.michaux@gmail.com>
Wed, 23 Dec 2015 15:12:39 +0000 (16:12 +0100)
committerMattias Michaux <mattias.michaux@gmail.com>
Wed, 23 Dec 2015 15:12:39 +0000 (16:12 +0100)
CRM/Mailing/Form/Component.php

index 3af70648a9d15096b405e182e9c2db53a823c171..7ac3c88f5e5d06911aa87c9609cc367010c76e50 100644 (file)
@@ -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