Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
225
Merge Requests
225
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
68432ae6
Commit
68432ae6
authored
Feb 27, 2006
by
Gerhard Killesreiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#49375
, 'drupal_goto' / 'drupal_get_destination' broken with query params, patch by eberts
parent
8ea7cb3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
includes/common.inc
includes/common.inc
+10
-6
No files found.
includes/common.inc
View file @
68432ae6
...
...
@@ -170,14 +170,18 @@ function drupal_get_destination() {
return
'destination='
.
urlencode
(
$_REQUEST
[
'destination'
]);
}
else
{
$
destination
[]
=
$_GET
[
'q'
];
$params
=
array
(
'page'
,
'sort'
,
'order'
);
foreach
(
$
params
as
$param
)
{
if
(
isset
(
$_GET
[
$param
])
)
{
$destination
[]
=
"
$param
="
.
$_GET
[
$param
]
;
$
path
=
$_GET
[
'q'
];
$params
=
array
();
foreach
(
$
_GET
as
$key
=>
$value
)
{
if
(
$key
==
'q'
)
{
continue
;
}
$params
[]
=
urlencode
(
$key
)
.
'='
.
urlencode
(
$value
);
}
return
'destination='
.
urlencode
(
implode
(
'&'
,
$destination
));
if
(
count
(
$params
))
{
$path
.
=
'?'
;
}
return
'destination='
.
urlencode
(
$path
.
implode
(
'&'
,
$params
));
}
}
...
...
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