Merge pull request #6982 from eileenmcnaughton/CRM-17412
[civicrm-core.git] / CRM / Friend / Form.php
index b48829235dba461a2ea05b814c4799805995ea22..5c0278aecdbcd4884a7999222c721b79ee81f8b9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
@@ -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',