Index: modules/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/Attic/user.module,v
retrieving revision 1.612.2.18
diff -U2 -F^function -r1.612.2.18 user.module
--- modules/user.module	11 Sep 2006 10:57:49 -0000	1.612.2.18
+++ modules/user.module	22 Sep 2006 19:58:43 -0000
@@ -552,5 +552,5 @@ function user_block($op = 'list', $delta
         // For usability's sake, avoid showing two login forms on one page.
         if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) {
-          $form['#action'] = url($_GET['q'], drupal_get_destination());
+          $form['#action'] = url($_GET['q'], urldecode(drupal_get_destination()));
           $form['#id'] = 'user-login-form';
           $form['name'] = array('#type' => 'textfield',
@@ -899,5 +899,5 @@ function user_login($msg = '') {
   }
   unset($_GET['time']);
-  $form['#action'] = url($_GET['q'], drupal_get_destination());
+  $form['#action'] = url($_GET['q'], urldecode(drupal_get_destination()));
   $form['name'] = array('#type' => 'textfield',
     '#title' => t('Username'),
