diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-12 06:13:34 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-12 06:13:34 +0000 |
commit | e5027541c410a5dd954d3e2c357313c2418bebd0 (patch) | |
tree | 568ed7332494a07c031b4040b4379e55c0724dce | |
parent | fcde99a4ddfde3c725b10454ba575d82c8cc7aa1 (diff) | |
download | brdo-e5027541c410a5dd954d3e2c357313c2418bebd0.tar.gz brdo-e5027541c410a5dd954d3e2c357313c2418bebd0.tar.bz2 |
#78377: Use real path instead of alias in destination
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index f1aabbda8..ff86ba85b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -243,8 +243,8 @@ function drupal_get_destination() { return 'destination='. urlencode($_REQUEST['destination']); } else { - // Use $_REQUEST here to retrieve the original path. - $path = isset($_REQUEST['q']) ? drupal_get_path_alias($_REQUEST['q']) : ''; + // Use $_GET here to retrieve the original path in source form. + $path = isset($_GET['q']) ? $_GET['q'] : ''; $query = drupal_query_string_encode($_GET, array('q')); if ($query != '') { $path .= '?'. $query; |