? 323917-trim-key-d6.patch Index: l10n_client.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/l10n_client/Attic/l10n_client.module,v retrieving revision 1.22.2.1 diff -u -p -r1.22.2.1 l10n_client.module --- l10n_client.module 14 Jul 2009 18:02:54 -0000 1.22.2.1 +++ l10n_client.module 17 Apr 2010 10:39:30 -0000 @@ -544,7 +544,7 @@ function l10n_client_settings_form_valid * * Set up API key for localization server. */ -function l10n_client_user($type, $edit, &$account, $category = NULL) { +function l10n_client_user($type, &$edit, &$account, $category = NULL) { if ($type == 'form' && $category == 'account' && variable_get('l10n_client_use_server', FALSE) && user_access('submit translations to localization server', $account)) { $form['l10n_client'] = array( '#type' => 'fieldset', @@ -561,6 +561,9 @@ function l10n_client_user($type, $edit, ); return $form; } + else if ($type == 'submit' && $category == 'account' && isset($edit['l10n_client_key'])) { + $edit['l10n_client_key'] = trim($edit['l10n_client_key']); + } } /**