Index: captcha.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.module,v retrieving revision 1.103.2.12 diff -u -b -u -p -r1.103.2.12 captcha.module --- captcha.module 31 Oct 2010 10:01:50 -0000 1.103.2.12 +++ captcha.module 2 Nov 2010 22:15:25 -0000 @@ -591,7 +591,9 @@ function captcha_validate($element, &$fo // captcha_validate(), does not check error conditions of extra form // elements like the CAPTCHA. if ($form_id == 'user_login' || $form_id == 'user_login_block') { - drupal_goto($_GET['q']); + $destination = drupal_get_destination(); + unset($_REQUEST['destination']); + drupal_goto($_GET['q'], $destination); } } }