Add unit test
[civicrm-core.git] / CRM / Friend / Form.php
index 7c0b7e18bd9fa123e879f77978fbec4911c91d1b..ff7322e6b015625e760c4771ca841efcc079b631 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2016                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
  * $Id$
  *
  */
@@ -179,6 +179,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
    * @return void
    */
   public function buildQuickForm() {
+    $this->applyFilter('__ALL__', 'trim');
     // Details of User
     $name = &$this->add('text',
       'from_name',