From 679e9011d97e5c79c308aad23ffc240f0ba69737 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 13 May 2009 17:23:48 +0000 Subject: #292565 follow-up by Jody Lynn: Remove ['destination'] hacks to get login redirection working again. --- includes/common.inc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index ea7b02a74..45c15cc8b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -358,11 +358,6 @@ function drupal_not_found() { watchdog('page not found', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); - // Keep old path for reference. - if (!isset($_REQUEST['destination'])) { - $_REQUEST['destination'] = $_GET['q']; - } - $path = drupal_get_normal_path(variable_get('site_404', '')); if ($path && $path != $_GET['q']) { // Custom 404 handler. Set the active item in case there are tabs to @@ -389,13 +384,9 @@ function drupal_not_found() { */ function drupal_access_denied() { drupal_set_header('403 Forbidden'); + watchdog('access denied', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); - // Keep old path for reference. - if (!isset($_REQUEST['destination'])) { - $_REQUEST['destination'] = $_GET['q']; - } - $path = drupal_get_normal_path(variable_get('site_403', '')); if ($path && $path != $_GET['q']) { // Custom 403 handler. Set the active item in case there are tabs to -- cgit v1.2.3