Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
e5027541
Commit
e5027541
authored
Dec 12, 2006
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#78377
: Use real path instead of alias in destination
parent
fcde99a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
includes/common.inc
includes/common.inc
+2
-2
No files found.
includes/common.inc
View file @
e5027541
...
...
@@ -243,8 +243,8 @@ function drupal_get_destination() {
return
'destination='
.
urlencode
(
$_REQUEST
[
'destination'
]);
}
else
{
// Use $_
REQUES
T here to retrieve the original path.
$path
=
isset
(
$_
REQUES
T
[
'q'
])
?
drupal_get_path_alias
(
$_REQUES
T
[
'q'
]
)
:
''
;
// Use $_
GE
T here to retrieve the original path
in source form
.
$path
=
isset
(
$_
GE
T
[
'q'
])
?
$_GE
T
[
'q'
]
:
''
;
$query
=
drupal_query_string_encode
(
$_GET
,
array
(
'q'
));
if
(
$query
!=
''
)
{
$path
.
=
'?'
.
$query
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment