a little better query handling in redirect code
This commit is contained in:
parent
2f82a3d44c
commit
f809663245
|
@ -93,8 +93,19 @@ class Status_network extends DB_DataObject
|
||||||
function redirectToHostname()
|
function redirectToHostname()
|
||||||
{
|
{
|
||||||
$destination = 'http://'.$this->hostname;
|
$destination = 'http://'.$this->hostname;
|
||||||
$destination .= $_SERVER['REQUEST_URI'].
|
$destination .= $_SERVER['REQUEST_URI'];
|
||||||
$_SERVER['QUERY_STRING'];
|
|
||||||
|
$args = $_GET;
|
||||||
|
|
||||||
|
if (isset($args['p'])) {
|
||||||
|
unset($args['p']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = http_build_query($args);
|
||||||
|
|
||||||
|
if (strlen($query) > 0) {
|
||||||
|
$destination .= '?' . $query;
|
||||||
|
}
|
||||||
|
|
||||||
$old = 'http'.
|
$old = 'http'.
|
||||||
(($_SERVER['HTTPS'] == 'on') ? 'S' : '').
|
(($_SERVER['HTTPS'] == 'on') ? 'S' : '').
|
||||||
|
|
Loading…
Reference in New Issue
Block a user