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
221
Merge Requests
221
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
bd08cb5e
Commit
bd08cb5e
authored
Apr 27, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#59222
by Zen: make the front page check reliable.
parent
adb88830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
includes/common.inc
includes/common.inc
+4
-3
No files found.
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
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