Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
bd08cb5e
Commit
bd08cb5e
authored
Apr 27, 2006
by
Dries Buytaert
Browse files
- Patch
#59222
by Zen: make the front page check reliable.
parent
adb88830
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
bd08cb5e
...
...
@@ -204,11 +204,12 @@ function drupal_query_string_encode($query, $exclude = array(), $parent = '') {
* @see drupal_goto()
*/
function
drupal_get_destination
()
{
if
(
$_REQUEST
[
'destination'
])
{
if
(
isset
(
$_REQUEST
[
'destination'
])
)
{
return
'destination='
.
urlencode
(
$_REQUEST
[
'destination'
]);
}
else
{
$path
=
$_GET
[
'q'
];
// Use $_REQUEST here to retrieve the original path.
$path
=
isset
(
$_REQUEST
[
'q'
])
?
$_REQUEST
[
'q'
]
:
''
;
$query
=
drupal_query_string_encode
(
$_GET
,
array
(
'q'
));
if
(
$query
!=
''
)
{
$path
.
=
'?'
.
$query
;
...
...
@@ -994,7 +995,7 @@ function url($path = NULL, $query = NULL, $fragment = NULL, $absolute = FALSE) {
$base
=
(
$absolute
?
$base_url
.
'/'
:
base_path
());
// The special path '<front>' links to the default front page.
if
(
isset
(
$path
)
&&
$path
!=
'<front>'
)
{
if
(
!
empty
(
$path
)
&&
$path
!=
'<front>'
)
{
$path
=
drupal_get_path_alias
(
$path
);
$path
=
drupal_urlencode
(
$path
);
if
(
!
$clean_url
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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