=== modified file 'uc_order/uc_order.admin.inc'
--- uc_order/uc_order.admin.inc	2010-11-02 20:40:16 +0000
+++ uc_order/uc_order.admin.inc	2011-01-26 16:12:02 +0000
@@ -869,9 +869,9 @@
 
   // Return the search results and let them pick one!
   if (arg(4) == 'search') {
-    $first_name = str_replace('*', '%', db_like(arg(5)));
-    $last_name = str_replace('*', '%', db_like(arg(6)));
-    $email = str_replace('*', '%', db_like(arg(7)));
+    $first_name = str_replace('*', '%', db_like($_POST['first_name']));
+    $last_name = str_replace('*', '%', db_like($_POST['last_name']));
+    $email = str_replace('*', '%', db_like($_POST['email']));
 
     $query = db_select('users', 'u')->distinct();
     $o = $query->leftJoin('uc_orders', 'o', 'u.uid = o.uid');
@@ -890,13 +890,13 @@
       )
       ->orderBy($ob_last_name);
 
-    if ($first_name !== '0' && $first_name !== '%') {
+    if ($first_name && $first_name !== '%') {
       $query->condition($ob_first_name, $first_name, 'LIKE');
     }
-    if ($last_name !== '0' && $last_name !== '%') {
+    if ($last_name && $last_name !== '%') {
       $query->condition($ob_last_name, $last_name, 'LIKE');
     }
-    if ($email !== '0' && $email !== '%') {
+    if ($email && $email !== '%') {
       $query->condition(db_or()
         ->condition($o_email, $email, 'LIKE')
         ->condition($u_mail, $email, 'LIKE')
@@ -927,7 +927,7 @@
 
   // Check to see if the e-mail address for a new user is unique.
   if (arg(5) == 'check') {
-    $email = check_plain(arg(6));
+    $email = check_plain($_POST['email']);
     $build['email'] = array('#markup' => '');
     if (!valid_email_address($email)) {
       $build['email']['#markup'] .= t('Invalid e-mail address.') . '<br />';
@@ -936,7 +936,7 @@
     if ($user = $result->fetchObject()) {
       $build['email']['#markup'] .= t('An account already exists for that e-mail.') . '<br /><br />';
       $build['email']['#markup'] .= '<b>' . t('Use this account now?') . '</b><br />'
-        . t('User !uid - !mail', array('!uid' => $user->uid, '!mail' => $user->mail)) . ' <input type="button" '
+        . t('User @uid - @mail', array('@uid' => $user->uid, '@mail' => $user->mail)) . ' <input type="button" '
         . 'onclick="select_existing_customer(' . $user->uid . ', \''
         . $user->mail . '\');" value="' . t('Apply') . '" /><br /><br /><hr /><br/>';
     }

=== modified file 'uc_order/uc_order.js'
--- uc_order/uc_order.js	2010-11-02 20:40:16 +0000
+++ uc_order/uc_order.js	2011-01-26 15:53:36 +0000
@@ -181,22 +181,12 @@
  * Display the results of the customer search.
  */
 function load_customer_search_results() {
-  var first_name = jQuery('#customer-select #edit-first-name').val();
-  var last_name = jQuery('#customer-select #edit-last-name').val();
-  var email = jQuery('#customer-select #edit-email').val();
-
-  if (first_name == '') {
-    first_name = '0';
-  }
-  if (last_name == '') {
-    last_name = '0';
-  }
-  if (email == '') {
-    email = '0';
-  }
-
-  jQuery.post(Drupal.settings.ucURL.adminOrders + 'customer/search/' + encodeURIComponent(first_name) + '/' + encodeURIComponent(last_name) + '/' + encodeURIComponent(email),
-    { },
+  jQuery.post(Drupal.settings.ucURL.adminOrders + 'customer/search',
+    {
+      first_name: jQuery('#customer-select #edit-first-name').val(),
+      last_name: jQuery('#customer-select #edit-last-name').val(),
+      email: jQuery('#customer-select #edit-email').val()
+    },
     function (contents) {
       jQuery('#customer-select').empty().append(contents);
     }
@@ -246,7 +236,7 @@
     'email' : jQuery('#customer-select #edit-email').val(),
     'sendmail' : jQuery('#customer-select #edit-sendmail').attr('checked')
   };
-  jQuery.post(Drupal.settings.ucURL.adminOrders + 'customer/new/check/' + encodeURIComponent(options['email']), options,
+  jQuery.post(Drupal.settings.ucURL.adminOrders + 'customer/new/check', options,
     function (contents) {
       jQuery('#customer-select').empty().append(contents);
     }

