Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL-CMS
Commits
a0196f39
Commit
a0196f39
authored
Feb 18, 2013
by
Eric Rasmussen
Browse files
[gh-419] Just use $_SERVER['QUERY_STRING']
parent
7a4bbe2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/unl_bootstrap.inc
View file @
a0196f39
...
...
@@ -92,8 +92,8 @@ function unl_bootstrap_proxy_pass_support() {
$GLOBALS
[
'base_url'
]
=
'http://'
.
$_SERVER
[
'HTTP_X_FORWARDED_HOST'
]
.
$_SERVER
[
'HTTP_X_FORWARDED_PATH'
];
$GLOBALS
[
'cookie_domain'
]
=
$_SERVER
[
'HTTP_X_FORWARDED_HOST'
];
$_SERVER
[
'REQUEST_URI'
]
=
$_SERVER
[
'HTTP_X_FORWARDED_PATH'
]
.
'/'
.
request_path
();
if
(
isset
(
$_SERVER
[
'
REDIRECT_
QUERY_STRING'
]))
{
$_SERVER
[
'REQUEST_URI'
]
.
=
'?'
.
$_SERVER
[
'
REDIRECT_
QUERY_STRING'
];
if
(
isset
(
$_SERVER
[
'QUERY_STRING'
]))
{
$_SERVER
[
'REQUEST_URI'
]
.
=
'?'
.
$_SERVER
[
'QUERY_STRING'
];
}
}
}
...
...
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