Skip to content
Snippets Groups Projects
Commit a0196f39 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-419] Just use $_SERVER['QUERY_STRING']

parent 7a4bbe2e
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,8 @@ function unl_bootstrap_proxy_pass_support() { ...@@ -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['base_url'] = 'http://' . $_SERVER['HTTP_X_FORWARDED_HOST'] . $_SERVER['HTTP_X_FORWARDED_PATH'];
$GLOBALS['cookie_domain'] = $_SERVER['HTTP_X_FORWARDED_HOST']; $GLOBALS['cookie_domain'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_FORWARDED_PATH'] . '/' . request_path(); $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_FORWARDED_PATH'] . '/' . request_path();
if (isset($_SERVER['REDIRECT_QUERY_STRING'])) { if (isset($_SERVER['QUERY_STRING'])) {
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['REDIRECT_QUERY_STRING']; $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment