Index: logintoboggan.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/logintoboggan/logintoboggan.module,v
retrieving revision 1.133.2.39
diff -u -r1.133.2.39 logintoboggan.module
--- logintoboggan.module	12 May 2010 17:35:56 -0000	1.133.2.39
+++ logintoboggan.module	30 Aug 2010 13:18:28 -0000
@@ -823,6 +823,14 @@
     // build the user menu item as the 403 page content, adjust the page title appropriately, and warn
     // the user that they were denied access.
     menu_set_active_item('user');
+
+    // We need to change $_GET['q'] to disallowed path, because
+    // menu_get_active_breadcrumb() function used active item to check
+    // user access, but active trail can be cached based on initial
+    // $_GET['q'] value (if some module call menu_get_active_trail()).
+    // So, we must disallow drupal to create breadcrumbs from this trail.
+    menu_set_active_item('user/0');
+
     $return = menu_execute_active_handler();
     drupal_set_title(t('Access Denied / User Login'));
     drupal_set_message(t('Access denied.  You may need to login below or register to access this page.'), 'error');

