--- securepages.module.orig	2006-09-15 09:08:40.000000000 -0500
+++ securepages.module	2007-02-13 10:27:28.000000000 -0600
@@ -86,6 +86,10 @@ function securepages_form_alter($form_id
     elseif ($page_match === FALSE && $_SERVER['HTTPS'] && variable_get('securepages_switch', FALSE)) {
       $form['#action'] = securepages_get_destination($path, $query, FALSE);
     }
+    // Special case for the user login block, which does not have a fixed destionation
+    if ($form_id == 'user_login_block') { 
+      $form['#action'] = securepages_get_destination($path, $query, TRUE);
+    }
   }
 }