From 2173ef13fde5e7ca08cfded999b2bb857137e7c7 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Mon, 27 Feb 2006 14:19:07 +0000 Subject: [PATCH] #50772, Getting destination from $_REQUEST, patch by rmiotke --- includes/common.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/common.inc b/includes/common.inc index 99da0b592641..9b9f8b76c4cd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -218,10 +218,10 @@ function drupal_get_destination() { * @see drupal_get_destination() */ function drupal_goto($path = '', $query = NULL, $fragment = NULL) { - if ($_REQUEST['destination']) { + if (isset($_REQUEST['destination'])) { extract(parse_url($_REQUEST['destination'])); } - else if ($_REQUEST['edit']['destination']) { + else if (isset($_REQUEST['edit']['destination'])) { extract(parse_url($_REQUEST['edit']['destination'])); } -- GitLab