Index: l10n_community/l10n_community.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.66.2.7
diff -u -r1.1.2.23.2.66.2.7 l10n_community.module
--- l10n_community/l10n_community.module	19 Feb 2010 08:23:05 -0000	1.1.2.23.2.66.2.7
+++ l10n_community/l10n_community.module	20 Feb 2010 18:13:31 -0000
@@ -219,7 +219,7 @@
     'access arguments' => array('access localization community'),
     'type' => MENU_CALLBACK
   );
-  
+
 
   // AJAX callbacks for easy translation management. These are expected to be
   // used only onsite (not as remote API endpoints), so they have no versioning.
@@ -1376,7 +1376,7 @@
     'project' => NULL,
     'status' => isset($params['status']) ? (int) $params['status'] : L10N_STATUS_ALL,
     'release' => 'all',
-    'search' => !empty($params['search']) ? (string) $params['search'] : '',
+    'search' => !empty($params['search']) ? (string)trim($params['search']) : '',
     'author' => !empty($params['author']) && ($account = user_load(array('name' => $params['author']))) ? $account : NULL,
     // Dropdown, validated by form API.
     'context' => isset($params['context']) ? (string) $params['context'] : 'all',
@@ -1469,13 +1469,13 @@
   // Pick and render our changed element for output.
   $changed_element = ($form_id == 'l10n_community_export_form') ? $form['data']['release'] : $form['release'];
   // Prevent duplicate wrappers.
-  unset($changed_element['#prefix'], $changed_element['#suffix']); 
+  unset($changed_element['#prefix'], $changed_element['#suffix']);
 
   if ($form_id == 'l10n_community_filter_form') {
     // Prevent duplicate titles (due to how we render the elements).
     unset($changed_element['#title']);
   }
-  
+
   drupal_json(
     array(
       'status' => TRUE,
